HTTP Client#
This module contains the HTTP Client API data types.
Modules#
sl_http_client_configuration_t
Typedefs#
Handle for the HTTP client.
Callback function type for handling HTTP client events.
Structure representing an HTTP client extended header node.
Typedef Documentation#
sl_http_client_t#
typedef uint32_t sl_http_client_t
Handle for the HTTP client.
This type defines a handle used to identify and manage an HTTP client instance. It is used in various HTTP client operations to reference a specific client.
157
of file components/service/http_client/inc/sl_http_client.h
sl_http_client_event_handler_t#
sl_http_client_event_handler_t )(const sl_http_client_t *client, sl_http_client_event_t event, void *data, void *request_context)
Callback function type for handling HTTP client events.
[out] | client | HTTP client handle of type sl_http_client_t. |
[out] | event | HTTP event that has occurred, of type sl_http_client_event_t. |
[out] | data | Pointer to the HTTP response data. |
[out] | request_context | User-defined context pointer. |
This callback is invoked when an HTTP response is received. It provides the client handle, the event that occurred, the response data, and a user-defined context pointer.
Returns
Returns an sl_status_t value indicating the result of the callback execution. See https://docs.silabs.com/gecko-platform/latest/platform-common/status for details.
179
of file components/service/http_client/inc/sl_http_client.h
sl_http_client_header_t#
typedef struct sl_http_client_header_s sl_http_client_header_t
Structure representing an HTTP client extended header node.
This structure is used to represent a single HTTP header in a linked list of headers. Each node contains a key-value pair for the header, and a pointer to the next header in the list.
230
of file components/service/http_client/inc/sl_http_client.h