FreeRTOS: HTTPS Client
HTTPS Client v1.0.0 library
Return to main page ↑
Constants

Defined constants of the HTTPS Client library.

Libraries may #define constants in their headers with special meanings. This page describes the meanings and uses of any constants defined by the HTTPS Client library. Related constants are shown in a single section on this page.

HTTPS Client Minimum User Buffer Sizes

Variables calculating the size of IotHttpsUserBuffer_t.bufferLen needed for the request, response, and connection.

Note
These user buffer minimum values may change at any time in future versions, but their names will remain the same.

HTTPS Client Connection Flags

Flags that modify the behavior of the HTTPS Connection.

Flags should be bitwise-ORed with each other to change the behavior of IotHttpsClient_SendAsync and IotHttpsClient_SendSync. These flags are set in IotHttpsConnectionInfo_t.flags.

Note
The values of flags may change at any time in future versions, but their names will remain the same.

HTTP Initializers

Provide default values for the data types of the HTTP Client Library.

#define IOT_HTTPS_CONNECTION_HANDLE_INITIALIZER NULL
#define IOT_HTTPS_REQUEST_HANDLE_INITIALIZER NULL
#define IOT_HTTPS_RESPONSE_HANDLE_INITIALIZER NULL
#define IOT_HTTPS_USER_BUFFER_INITIALIZER { 0 }
#define IOT_HTTPS_SYNC_INFO_INITIALIZER { 0 }
#define IOT_HTTPS_ASYNC_INFO_INITIALIZER { 0 }
#define IOT_HTTPS_CONNECTION_INFO_INITIALIZER { 0 }
#define IOT_HTTPS_REQUEST_INFO_INITIALIZER { 0 }
#define IOT_HTTPS_RESPONSE_INFO_INITIALIZER { 0 }

All user-facing data types of the HTTPS Client library should be initialized using one of the following.

Warning
Failing to initialize an HTTPS Client data type with the appropriate initializer may result in undefined behavior.
Note
The initializers may change at any time in future versions, but their names will remain the same.

Example

HTTPS Client Connection Flags

Flags that modify the behavior the HTTPS connection.

IOT_HTTPS_RESPONSE_HANDLE_INITIALIZER
#define IOT_HTTPS_RESPONSE_HANDLE_INITIALIZER
Initializer for IotHttpsResponseHandle_t.
Definition: iot_https_types.h:194
IOT_HTTPS_SYNC_INFO_INITIALIZER
#define IOT_HTTPS_SYNC_INFO_INITIALIZER
Initializer for IotHttpsSyncInfo_t.
Definition: iot_https_types.h:198
IOT_HTTPS_RESPONSE_INFO_INITIALIZER
#define IOT_HTTPS_RESPONSE_INFO_INITIALIZER
Initializer for IotHttpsResponseInfo_t.
Definition: iot_https_types.h:206
IotHttpsResponseHandle_t
struct _httpsResponse * IotHttpsResponseHandle_t
Opaque handle of an HTTP response.
Definition: iot_https_types.h:280
IotHttpsRequestInfo_t
HTTP request configuration.
Definition: iot_https_types.h:796
IOT_HTTPS_USER_BUFFER_INITIALIZER
#define IOT_HTTPS_USER_BUFFER_INITIALIZER
Initializer for IotHttpsUserBuffer_t.
Definition: iot_https_types.h:196
IotHttpsResponseInfo_t
HTTP request configuration.
Definition: iot_https_types.h:884
IotHttpsRequestHandle_t
struct _httpsRequest * IotHttpsRequestHandle_t
Opaque handle of an HTTP request.
Definition: iot_https_types.h:263
IOT_HTTPS_CONNECTION_HANDLE_INITIALIZER
#define IOT_HTTPS_CONNECTION_HANDLE_INITIALIZER
Initializer for IotHttpsConnectionHandle_t.
Definition: iot_https_types.h:190
IotHttpsConnectionHandle_t
struct _httpsConnection * IotHttpsConnectionHandle_t
Opaque handle of an HTTP connection.
Definition: iot_https_types.h:248
IotHttpsSyncInfo_t
HTTPS Client synchronous request information.
Definition: iot_https_types.h:668
IotHttpsUserBuffer_t
User-provided buffer for storing the HTTPS headers and library internal context.
Definition: iot_https_types.h:650
IOT_HTTPS_CONNECTION_INFO_INITIALIZER
#define IOT_HTTPS_CONNECTION_INFO_INITIALIZER
Initializer for IotHttpsConnectionInfo_t.
Definition: iot_https_types.h:202
IOT_HTTPS_REQUEST_INFO_INITIALIZER
#define IOT_HTTPS_REQUEST_INFO_INITIALIZER
Initializer for IotHttpsRequestInfo_t.
Definition: iot_https_types.h:204
IOT_HTTPS_REQUEST_HANDLE_INITIALIZER
#define IOT_HTTPS_REQUEST_HANDLE_INITIALIZER
Initializer for IotHttpsRequestHandle_t.
Definition: iot_https_types.h:192
IotHttpsConnectionInfo_t
HTTP connection configuration.
Definition: iot_https_types.h:721