HTTP Client#
This module contains the HTTP Client API constants.
Enumerations#
Enumeration of HTTP client methods.
Enumeration of HTTPS client TLS versions.
Enumeration of HTTP client events.
Macros#
Maximum buffer length for write data.
Default certificate index for HTTPS client.
Certificate index for an HTTPS client certificate.
Certificate index for the an HTTPS client certificate.
Enumeration Documentation#
sl_http_client_method_type_t#
sl_http_client_method_type_t
Enumeration of HTTP client methods.
This enumeration defines the HTTP methods that can be used by the HTTP client to perform various operations on the server.
Note
Current SDK does not support SL_HTTP_HEAD and SL_HTTP_DELETE methods.
Enumerator | |
---|---|
SL_HTTP_GET | HTTP GET method, used to retrieve data from the server. |
SL_HTTP_POST | HTTP POST method, used to send data to the server. |
SL_HTTP_HEAD | HTTP HEAD method, used to retrieve headers from the server. |
SL_HTTP_PUT | HTTP PUT method, used to update or create a resource on the server. |
SL_HTTP_DELETE | HTTP DELETE method, used to delete a resource from the server. |
92
of file components/service/http_client/inc/sl_http_client.h
sl_http_client_tls_version_t#
sl_http_client_tls_version_t
Enumeration of HTTPS client TLS versions.
This enumeration defines the versions of the Transport Layer Security (TLS) protocol that can be used by the HTTPS client. Each version provides different levels of security and compatibility.
Enumerator | |
---|---|
SL_TLS_V_1_0 | Use TLS Version 1.0 for HTTPS Client. |
SL_TLS_V_1_1 | Use TLS Version 1.1 for HTTPS Client. |
SL_TLS_V_1_2 | Use TLS Version 1.2 for HTTPS Client. |
SL_TLS_V_1_3 | Use TLS Version 1.3 for HTTPS Client. |
107
of file components/service/http_client/inc/sl_http_client.h
sl_http_client_version_t#
sl_http_client_version_t
Enumeration of HTTP protocol versions.
This enumeration defines the versions of the HTTP protocol that can be used by the HTTP client. Each version corresponds to a specific set of features and behaviors defined by the HTTP standard.
Enumerator | |
---|---|
SL_HTTP_V_1_0 | Use HTTP Protocol version 1.0. |
SL_HTTP_V_1_1 | Use HTTP Protocol version 1.1. |
121
of file components/service/http_client/inc/sl_http_client.h
sl_http_client_event_t#
sl_http_client_event_t
Enumeration of HTTP client events.
This enumeration defines the various events that can occur during HTTP client operations. Each event corresponds to a specific type of HTTP response received by the client.
Enumerator | |
---|---|
SL_HTTP_CLIENT_GET_RESPONSE_EVENT | Event for receiving a response to an HTTP GET request. |
SL_HTTP_CLIENT_POST_RESPONSE_EVENT | Event for receiving a response to an HTTP POST request. |
SL_HTTP_CLIENT_PUT_RESPONSE_EVENT | Event for receiving a response to an HTTP PUT request. |
SL_HTTP_CLIENT_MAX_EVENT | Maximum number of HTTP client events. |
133
of file components/service/http_client/inc/sl_http_client.h