coreHTTP v3.1.1
HTTP/1.1 Client Library
 
Loading...
Searching...
No Matches
HTTPResponse_t Flags

Flags for HTTPResponse_t.respFlags. These flags are populated in HTTPResponse_t.respFlags by the HTTPClient_Send function. More...

Macros

#define HTTP_RESPONSE_CONNECTION_CLOSE_FLAG   0x1U
 This will be set to true if header "Connection: close" is found.
 
#define HTTP_RESPONSE_CONNECTION_KEEP_ALIVE_FLAG   0x2U
 This will be set to true if header "Connection: Keep-Alive" is found.
 

Detailed Description

Flags for HTTPResponse_t.respFlags. These flags are populated in HTTPResponse_t.respFlags by the HTTPClient_Send function.

A flag's value can be extracted from HTTPResponse_t.respFlags with a bitwise-AND.

Macro Definition Documentation

◆ HTTP_RESPONSE_CONNECTION_CLOSE_FLAG

#define HTTP_RESPONSE_CONNECTION_CLOSE_FLAG   0x1U

This will be set to true if header "Connection: close" is found.

If a "Connection: close" header is present the application should always close the connection.

This flag is valid only for HTTPResponse_t.respFlags.

◆ HTTP_RESPONSE_CONNECTION_KEEP_ALIVE_FLAG

#define HTTP_RESPONSE_CONNECTION_KEEP_ALIVE_FLAG   0x2U

This will be set to true if header "Connection: Keep-Alive" is found.

This flag is valid only for HTTPResponse_t.respFlags.