document header lifecycle change 19/3019/1
authorAndy Green <andy.green@linaro.org>
Wed, 6 Feb 2013 11:13:03 +0000 (20:13 +0900)
committerKevron Rees <kevron_m_rees@linux.intel.com>
Thu, 7 Mar 2013 21:01:31 +0000 (13:01 -0800)
Signed-off-by: Andy Green <andy.green@linaro.org>
README.coding

index caec22f..b994f3a 100644 (file)
@@ -151,3 +151,14 @@ $ g++ -DINSTALL_DATADIR=\"/usr/share\" -ocpptest test.cpp -lwebsockets
 INSTALL_DATADIR is only needed because the test server uses it as shipped, if
 you remove the references to it in your app you don't need to define it on
 the g++ line either.
+
+
+Availability of header information
+----------------------------------
+
+From v1.2 of the library onwards, the HTTP header content is free()d as soon
+as the websocket connection is established.  For websocket servers, you can
+copy interesting headers by handling LWS_CALLBACK_FILTER_PROTOCOL_CONNECTION
+callback, for clients there's a new callback just for this purpose
+LWS_CALLBACK_CLIENT_FILTER_PRE_ESTABLISH.
+