A structure that the implementation of HTTP entity.
#include <http_entity.h>
Data Fields | |
void(* | close )(void *priv_data) |
Close the entity. More... | |
int(* | get_contents_length )(void *priv_data) |
Get content length. More... | |
const char *(* | get_contents_type )(void *priv_data) |
Get content mime type. More... | |
uint8_t | is_chunked |
A flag for the using the chunked encoding transfer or not. More... | |
void * | priv_data |
Private data of this entity. More... | |
int(* | read )(void *priv_data, char *buffer, uint32_t size, uint32_t written) |
Read the content. More... | |
void(* http_entity::close)(void *priv_data) |
Close the entity.
Completed to send request. So release the resource.
[in] | priv_data | Private data of this entity. |
Referenced by _http_client_clear_conn(), and _http_client_request().
int(* http_entity::get_contents_length)(void *priv_data) |
Get content length.
If using the chunked encoding, This function does not needed.
[in] | priv_data | Private data of this entity. |
Referenced by _http_client_request().
const char *(* http_entity::get_contents_type)(void *priv_data) |
Get content mime type.
[in] | priv_data | Private data of this entity. |
uint8_t http_entity::is_chunked |
A flag for the using the chunked encoding transfer or not.
Referenced by _http_client_request().
void * http_entity::priv_data |
Private data of this entity.
Stored various data necessary for the operation of the entity.
Referenced by _http_client_clear_conn(), and _http_client_request().
Read the content.
[in] | priv_data | Private data of this entity. |
[in] | buffer | A buffer that stored read data. |
[in] | size | Maximum size of the buffer. |
[in] | written | total size of ever read. |
Referenced by _http_client_request().