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. HTTP Client request methods
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. |
55
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.
HTTP 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. |
67
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. |
75
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. |
81
of file components/service/http_client/inc/sl_http_client.h
Macro Definition Documentation#
SL_MAX_HTTP_CLIENT_WRITE_BUFFER_LENGTH#
#define SL_MAX_HTTP_CLIENT_WRITE_BUFFER_LENGTHValue:
900
MAX buffer length for write data.
37
of file components/service/http_client/inc/sl_http_client.h
SL_HTTPS_CLIENT_DEFAULT_CERTIFICATE_INDEX#
#define SL_HTTPS_CLIENT_DEFAULT_CERTIFICATE_INDEXValue:
0
HTTPS client Certificate Index constants.
40
of file components/service/http_client/inc/sl_http_client.h
SL_HTTPS_CLIENT_CERTIFICATE_INDEX_1#
#define SL_HTTPS_CLIENT_CERTIFICATE_INDEX_1Value:
1
HTTPS CLIENT 1st Certificate Index.
42
of file components/service/http_client/inc/sl_http_client.h
SL_HTTPS_CLIENT_CERTIFICATE_INDEX_2#
#define SL_HTTPS_CLIENT_CERTIFICATE_INDEX_2Value:
2
HTTPS CLIENT 2nd Certificate Index.
44
of file components/service/http_client/inc/sl_http_client.h