Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: xively-jumpstart-demo
Our simple HTTP parser [see http_layer_parser.h]. More...
Go to the source code of this file.
Functions | |
| http_response_t * | parse_http (http_response_t *response, const char *content) |
| This function takes the pointer to the `http_response_t` structure and fills it with parsed data from the give buffer. | |
Variables | |
| static const char | XI_HTTP_STATUS_PATTERN [] = "[^\r\n]\r\n" |
| the match pattern | |
Detailed Description
Our simple HTTP parser [see http_layer_parser.h].
Definition in file http_layer_parser.c.
Function Documentation
| http_response_t* parse_http | ( | http_response_t * | response, |
| const char * | data | ||
| ) |
This function takes the pointer to the `http_response_t` structure and fills it with parsed data from the give buffer.
While the parser looks at headers, satus line and content, it populates given pointer to `http_response_t`.
- Returns:
- Pointer or null if an error occurred.
- Note:
- It currently won't work against partial data.
Definition at line 158 of file http_layer_parser.c.
Variable Documentation
const char XI_HTTP_STATUS_PATTERN[] = "[^\r\n]\r\n" [static] |
the match pattern
Definition at line 21 of file http_layer_parser.c.
Generated on Wed Jul 13 2022 17:00:32 by
1.7.2