HTTP client response structure.

This structure holds the response data received from an HTTP server, which includes the status, data buffer, data length, HTTP response code, and response headers.

Public Attributes#

uint32_t

Status of the HTTP request.

uint8_t *

Pointer to the buffer containing the response data.

uint16_t

Length of the received data in bytes.

uint32_t

Indicator for the end of data (0: more data, 1: end of data).

uint16_t

HTTP response code from the server. (Si91x chipsets do not support this feature for SL_HTTP_PUT).

uint8_t

HTTP version used in the response. (Si91x chipsets do not support this feature).

Pointer to the HTTP response headers. See sl_http_client_header_t. (Si91x chipsets do not support this feature).

Public Attribute Documentation#

status#

uint32_t sl_http_client_response_t::status

Status of the HTTP request.


data_buffer#

uint8_t* sl_http_client_response_t::data_buffer

Pointer to the buffer containing the response data.


data_length#

uint16_t sl_http_client_response_t::data_length

Length of the received data in bytes.


end_of_data#

uint32_t sl_http_client_response_t::end_of_data

Indicator for the end of data (0: more data, 1: end of data).


http_response_code#

uint16_t sl_http_client_response_t::http_response_code

HTTP response code from the server. (Si91x chipsets do not support this feature for SL_HTTP_PUT).


version#

uint8_t sl_http_client_response_t::version

HTTP version used in the response. (Si91x chipsets do not support this feature).


response_headers#

sl_http_client_header_t* sl_http_client_response_t::response_headers

Pointer to the HTTP response headers. See sl_http_client_header_t. (Si91x chipsets do not support this feature).