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#
Status of the HTTP request.
Pointer to the buffer containing the response data.
Length of the received data in bytes.
Indicates the completion status of a data chunk or communication phase.
HTTP response code from the server. (Si91x chipsets do not support this feature for SL_HTTP_PUT).
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#
data_buffer#
uint8_t* sl_http_client_response_t::data_buffer
Pointer to the buffer containing the response data.
end_of_data#
uint32_t sl_http_client_response_t::end_of_data
Indicates the completion status of a data chunk or communication phase.
For Si91x small vs large POST modes, see sl_http_client_request_t::body.
GET / small POST (indications from the NWP): 0: More response data is expected. 1: This is the final chunk of the response.
Large POST (indications from the NWP): Upload phase: 2: Large POST started successfully; the NWP is ready for upload chunks. 4: Upload chunk accepted; more host data is still expected. 5: Upload chunk accepted; host upload is complete (last chunk acknowledgment). Server response (data received from the server after transmission): 8: More response data is expected. 9: This is the final chunk of the response.
PUT: Acknowledgment for transmitted data (notification from the NWP): 0: Further data transmission is expected. 1: Data transmission is complete. See SL_HTTP_CLIENT_PUT_DATA_TRANSMISSION_COMPLETE. Server response (data received from server after transmission): 8: More response data is expected. See SL_HTTP_CLIENT_PUT_SERVER_RESPONSE_MORE_DATA. 9: This is the final chunk of the response. See SL_HTTP_CLIENT_PUT_SERVER_RESPONSE_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).