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. |
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. |
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.
void* http_entity::priv_data |
Private data of this entity.
Stored various data necessary for the operation of the entity.
int(* http_entity::read)(void *priv_data, char *buffer, uint32_t size, uint32_t written) |
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. |