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.


Definition at line 283 of file components/service/http_client/inc/sl_http_client.h

data_buffer#

uint8_t* sl_http_client_response_t::data_buffer

Pointer to the buffer containing the response data.


Definition at line 284 of file components/service/http_client/inc/sl_http_client.h

data_length#

uint16_t sl_http_client_response_t::data_length

Length of the received data in bytes.


Definition at line 285 of file components/service/http_client/inc/sl_http_client.h

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).


Definition at line 286 of file components/service/http_client/inc/sl_http_client.h

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).


Definition at line 288 of file components/service/http_client/inc/sl_http_client.h

version#

uint8_t sl_http_client_response_t::version

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


Definition at line 289 of file components/service/http_client/inc/sl_http_client.h

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).


Definition at line 291 of file components/service/http_client/inc/sl_http_client.h