HTTP client request configurations.
Public Attributes#
HTTP request method. sl_http_client_method_type_t.
HTTP server IP address.
URL string for requested resource.
HTTP server port number.
SNI extension address. si91x_socket_type_length_value_t.
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 internally. sl_http_client_header_t.
HTTP request timeout period. (Si91x chipsets does not support this feature).
HTTP request maximum retry count after timeout. (Si91x chipsets does not support this feature).
Retry period after max retry count reach. (Si91x chipsets does not support this feature).
Flag to use same TCP socket for connection. (Si91x chipsets does not support this feature).
User defined context.
Public Attribute Documentation#
http_method_type#
sl_http_client_method_type_t sl_http_client_request_t::http_method_type
HTTP request method. sl_http_client_method_type_t.
154
of file components/service/http_client/inc/sl_http_client.h
ip_address#
uint8_t* sl_http_client_request_t::ip_address
HTTP server IP address.
155
of file components/service/http_client/inc/sl_http_client.h
resource#
uint8_t* sl_http_client_request_t::resource
URL string for requested resource.
156
of file components/service/http_client/inc/sl_http_client.h
port#
uint16_t sl_http_client_request_t::port
HTTP server port number.
157
of file components/service/http_client/inc/sl_http_client.h
sni_extension#
si91x_socket_type_length_value_t* sl_http_client_request_t::sni_extension
SNI extension address. si91x_socket_type_length_value_t.
158
of file components/service/http_client/inc/sl_http_client.h
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.
160
of file components/service/http_client/inc/sl_http_client.h
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.
162
of file components/service/http_client/inc/sl_http_client.h
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 internally. sl_http_client_header_t.
164
of file components/service/http_client/inc/sl_http_client.h
timeout_ms#
uint16_t sl_http_client_request_t::timeout_ms
HTTP request timeout period. (Si91x chipsets does not support this feature).
165
of file components/service/http_client/inc/sl_http_client.h
retry_count#
uint16_t sl_http_client_request_t::retry_count
HTTP request maximum retry count after timeout. (Si91x chipsets does not support this feature).
167
of file components/service/http_client/inc/sl_http_client.h
retry_period_ms#
uint16_t sl_http_client_request_t::retry_period_ms
Retry period after max retry count reach. (Si91x chipsets does not support this feature).
169
of file components/service/http_client/inc/sl_http_client.h
tcp_connection_reuse#
bool sl_http_client_request_t::tcp_connection_reuse
Flag to use same TCP socket for connection. (Si91x chipsets does not support this feature).
171
of file components/service/http_client/inc/sl_http_client.h
context#
void* sl_http_client_request_t::context
User defined context.
172
of file components/service/http_client/inc/sl_http_client.h
event_handler#
sl_http_client_event_handler_t sl_http_client_request_t::event_handler
Callback method. sl_http_client_event_handler_t.
173
of file components/service/http_client/inc/sl_http_client.h