Microchip® Advanced Software Framework

http_client_data_recv_response Struct Reference

Structure of the HTTP_CLIENT_CALLBACK_RECV_RESPONSE callback.

#include <http_client.h>

Data Fields

char * content
 Content buffer. More...
 
uint32_t content_length
 Length of entity. More...
 
uint8_t is_chunked
 If this flag is set to zero, This data is used chunked encoding. More...
 
uint8_t response_code
 Response code of HTTP request. More...
 

char* http_client_data_recv_response::content

Content buffer.

If this value is equal to zero, it means This data is too big compared with the receive buffer. In this situation, Data will be transmitted through HTTP_CLIENT_CALLBACK_RECV_CHUNKED_DATA callback.

Referenced by http_client_callback().

uint32_t http_client_data_recv_response::content_length

Length of entity.

Referenced by http_client_callback().

uint8_t http_client_data_recv_response::is_chunked

If this flag is set to zero, This data is used chunked encoding.

uint8_t http_client_data_recv_response::response_code

Response code of HTTP request.

Refer to following link. http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html

Referenced by http_client_callback().