From a2b3a36e44f0d60cf2a52c9ecc16e14369e3ce26 Mon Sep 17 00:00:00 2001 From: Andy Green Date: Wed, 6 Feb 2013 20:13:03 +0900 Subject: [PATCH] document header lifecycle change Signed-off-by: Andy Green --- README.coding | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.coding b/README.coding index caec22f6..b994f3a3 100644 --- a/README.coding +++ b/README.coding @@ -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. +