HTTP client request configurations.
Public Attributes#
HTTP request method.
HTTP server IP address.
URL string for requested resource.
HTTP server port number.
HTTP body to be sent to the server. Setting this to null will process the request in chunked encoding.
Body length of data to be posted. In case of chunked request, body length should be equal to total content length.
User-defined extended header. If null, default extended header will be added by TA.
HTTP request timeout period (feature coming soon).
HTTP request maximum retry count after timeout (feature coming soon).
Retry period after max retry count reach (feature coming soon).
Flag to use same TCP socket for connection (feature coming soon).
User defined context.
Callback method.
Public Attribute Documentation#
http_method_type#
sl_http_client_method_type_t sl_http_client_request_t::http_method_type
HTTP request method.
body#
uint8_t* sl_http_client_request_t::body
HTTP body to be sent to the server. Setting this to null will process the request in chunked encoding.
body_length#
uint32_t sl_http_client_request_t::body_length
Body length of data to be posted. In case of chunked request, body length should be equal to total content length.
extended_header#
sl_http_client_header_t* sl_http_client_request_t::extended_header
User-defined extended header. If null, default extended header will be added by TA.
timeout_ms#
uint16_t sl_http_client_request_t::timeout_ms
HTTP request timeout period (feature coming soon).
retry_count#
uint16_t sl_http_client_request_t::retry_count
HTTP request maximum retry count after timeout (feature coming soon).
retry_period_ms#
uint16_t sl_http_client_request_t::retry_period_ms
Retry period after max retry count reach (feature coming soon).
tcp_connection_reuse#
bool sl_http_client_request_t::tcp_connection_reuse
Flag to use same TCP socket for connection (feature coming soon).