HTTP Client#

This module contains the HTTP Client API data types.

Modules#

sl_http_client_credentials_t

sl_http_client_configuration_t

sl_http_client_header_s

sl_http_client_request_t

sl_http_client_response_t

Typedefs#

typedef uint32_t

Handle for the HTTP client.

typedef sl_status_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.

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.


Definition at line 158 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.

Parameters
[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


Definition at line 180 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.


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