introduce LWS_CALLBACK_CLIENT_APPEND_HANDSHAKE_HEADER
authorAndy Green <andy@warmcat.com>
Tue, 1 Mar 2011 21:06:02 +0000 (21:06 +0000)
committerAndy Green <andy@warmcat.com>
Tue, 1 Mar 2011 21:06:02 +0000 (21:06 +0000)
commit385e7ad0344f740ef4edb1790827096df96d5583
tree71ccb015602f41750db5b8eace71e8fcc260f81d
parenteeaacb39c76a12ba97aa0e2aeb5f29942374f860
introduce LWS_CALLBACK_CLIENT_APPEND_HANDSHAKE_HEADER

This adds a callback to protocols[0] which happens when the
Client HTTP handshake packet is being composed.  After all the
headers for the websocket handshake to the server have been
added, the callback is called with a pointer to a char *
that allows extra headers to be added.  See the comments in
libwebsocket.h or the api documentation for example code.

Signed-off-by: Andy Green <andy@warmcat.com>
lib/libwebsockets.c
lib/libwebsockets.h
libwebsockets-api-doc.html