mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
docs: add note on lws_http_client_http_response about when to call it
https://github.com/warmcat/libwebsockets/issues/1202
This commit is contained in:
parent
e333d1a751
commit
7f830195d6
1 changed files with 4 additions and 0 deletions
|
@ -3445,6 +3445,10 @@ lws_http_client_read(struct lws *wsi, char **buf, int *len);
|
|||
* \param wsi: client connection
|
||||
*
|
||||
* Returns the last server response code, eg, 200 for client http connections.
|
||||
*
|
||||
* You should capture this during the LWS_CALLBACK_ESTABLISHED_CLIENT_HTTP
|
||||
* callback, because after that the memory reserved for storing the related
|
||||
* headers is freed and this value is lost.
|
||||
*/
|
||||
LWS_VISIBLE LWS_EXTERN unsigned int
|
||||
lws_http_client_http_response(struct lws *wsi);
|
||||
|
|
Loading…
Add table
Reference in a new issue