coreHTTP  v2.0.0
HTTP/1.1 Client Library
HTTPRequestInfo_t Flags

Flags for HTTPRequestInfo_t.reqFlags. These flags control what headers are written or not to the HTTPRequestHeaders_t.pBuffer by HTTPClient_InitializeRequestHeaders. More...

Macros

#define HTTP_REQUEST_KEEP_ALIVE_FLAG   0x1U
 Set this flag to indicate that the request is for a persistent connection. More...
 

Detailed Description

Flags for HTTPRequestInfo_t.reqFlags. These flags control what headers are written or not to the HTTPRequestHeaders_t.pBuffer by HTTPClient_InitializeRequestHeaders.

Flags should be bitwise-ORed with each other to change the behavior of HTTPClient_InitializeRequestHeaders.

Macro Definition Documentation

◆ HTTP_REQUEST_KEEP_ALIVE_FLAG

#define HTTP_REQUEST_KEEP_ALIVE_FLAG   0x1U

Set this flag to indicate that the request is for a persistent connection.

Setting this will cause a "Connection: Keep-Alive" to be written to the request headers.

This flag is valid only for HTTPRequestInfo_t reqFlags parameter.