document header lifecycle change
Signed-off-by: Andy Green <andy.green@linaro.org>
This commit is contained in:
parent
2b57a34677
commit
a2b3a36e44
1 changed files with 11 additions and 0 deletions
|
@ -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.
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue