1
0
Fork 0
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:
Andy Green 2018-03-09 08:38:48 +08:00
parent e333d1a751
commit 7f830195d6

View file

@ -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);