Xively Official / mbed-libxively-5d6fdd4

Dependents:   xively-jumpstart-demo

Embed: (wiki syntax)

« Back to documentation index

http_layer_parser.h File Reference

http_layer_parser.h File Reference

Our simple HTTP parser. More...

Go to the source code of this file.

Functions

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.

Detailed Description

Our simple HTTP parser.

Author:
Olgierd Humenczuk

Definition in file http_layer_parser.h.


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.