FreeRTOS:
HTTPS Client
HTTPS Client v1.0.0 library
|
Return to main page ↑ |
Third party library http-parser information. More...
#include <iot_https_internal.h>
Data Fields | |
http_parser | responseParser |
http_parser state information for parsing the response. | |
size_t(* | parseFunc )(http_parser *parser, const http_parser_settings *settings, const char *data, size_t len) |
http_parser_execute function is to be plugged in here during initialization of the response. | |
http_parser | readHeaderParser |
http_parser state information for parsing the header buffer for reading a header. | |
Third party library http-parser information.
There are two separate structures for http_parser state information. This is so that the application can read a header during it's readReadyCallback. The readReadyCallback could be invoked many times and the parser will therefore be invoked many times for each response read from the network. In order to ensure that the state of the parser remains intact whilst headers may be read, two structures holding the state are kept.