Constants#
This section provides a reference to the HTTP API constants.
Enumerations#
HTTP client methods.
HTTPS client TLS versions.
HTTP client events.
Macros#
MAX buffer length for write data.
HTTPS client Certificate Index constants.
HTTPS CLIENT 1st Certificate Index.
HTTPS CLIENT 2nd Certificate Index.
Enumeration Documentation#
sl_http_client_method_type_t#
sl_http_client_method_type_t
HTTP client methods.
Note
917 does not support SL_HTTP_HEAD and SL_HTTP_DELETE in current release.
Enumerator | |
---|---|
SL_HTTP_GET | HTTP Request Method type GET. |
SL_HTTP_POST | HTTP Request Method type POST. |
SL_HTTP_HEAD | HTTP Request Method type HEAD. |
SL_HTTP_PUT | HTTP Request Method type PUT. |
SL_HTTP_DELETE | HTTP Request Method type DELETE. |
57
of file components/service/http_client/inc/sl_http_client.h
sl_http_client_tls_version_t#
sl_http_client_tls_version_t
HTTPS client TLS versions.
Enumerator | |
---|---|
SL_TLS_V_1_0 | Use TLS Version 1.0 for HTTP Client. |
SL_TLS_V_1_1 | Use TLS Version 1.1 for HTTP Client. |
SL_TLS_V_1_2 | Use TLS Version 1.2 for HTTP Client. |
SL_TLS_V_1_3 | Use TLS Version 1.3 for HTTP Client. |
68
of file components/service/http_client/inc/sl_http_client.h
sl_http_client_version_t#
sl_http_client_version_t
HTTP versions.
Enumerator | |
---|---|
SL_HTTP_V_1_0 | Use HTTP Protocol version 1.0. |
SL_HTTP_V_1_1 | Use HTTP Protocol version 1.1. |
76
of file components/service/http_client/inc/sl_http_client.h
sl_http_client_event_t#
sl_http_client_event_t
HTTP client events.
Enumerator | |
---|---|
SL_HTTP_CLIENT_GET_RESPONSE_EVENT | HTTP Client GET response Event. |
SL_HTTP_CLIENT_POST_RESPONSE_EVENT | HTTP Client POST response Event. |
SL_HTTP_CLIENT_PUT_RESPONSE_EVENT | HTTP Client PUT response Event. |
SL_HTTP_CLIENT_MAX_EVENT | HTTP Client Maximum number of events. |
82
of file components/service/http_client/inc/sl_http_client.h