friendev EtherDune TCP/IP library
Variables

Variables

static const char HTTP_HEADER_ACCEPT [] = "Accept"
 Content-Types that are acceptable for the response. More...
 
static const char HTTP_HEADER_ACCEPT_CHARSET [] = "Accept-Charset"
 Character sets that are acceptable . More...
 
static const char HTTP_HEADER_ACCEPT_ENCODING [] = "Accept-Encoding"
 List of acceptable encodings. More...
 
static const char HTTP_HEADER_ACCEPT_LANGUAGE [] = "Accept-Language"
 List of acceptable human languages for response. More...
 
static const char HTTP_HEADER_ACCEPT_DATETIME [] = "Accept-Datetime"
 Acceptable version in time . More...
 
static const char HTTP_HEADER_AUTHORIZATION [] = "Authorization"
 Authentication credentials for HTTP authentication . More...
 
static const char HTTP_HEADER_CACHE_CONTROL [] = "Cache-Control"
 Used to specify directives that must be obeyed by all caching mechanisms along the request-response chain . More...
 
static const char HTTP_HEADER_CONNECTION [] = "Connection"
 Control options for the current connection and List of hop-by-hop request fields[8] . More...
 
static const char HTTP_HEADER_COOKIE [] = "Cookie"
 An HTTP cookie previously sent by the server with Set-Cookie (below) . More...
 
static const char HTTP_HEADER_CONTENT_LENGTH [] = "Content-Length"
 The length of the request body in octets (8-bit bytes) . More...
 
static const char HTTP_HEADER_CONTENT_MD5 [] = "Content-MD5"
 A Base64-encoded binary MD5 sum of the content of the request body . More...
 
static const char HTTP_HEADER_CONTENT_TYPE [] = "Content-Type"
 The MIME type of the body of the request (used with POST and PUT requests) . More...
 
static const char HTTP_HEADER_DATE [] = "Date"
 The date and time that the message was sent (in "HTTP-date" format as defined by RFC 7231 Date/Time Formats) . More...
 
static const char HTTP_HEADER_EXPECT [] = "Expect"
 Indicates that particular server behaviors are required by the client . More...
 
static const char HTTP_HEADER_FROM [] = "From"
 The email address of the user making the request . More...
 
static const char HTTP_HEADER_HOST [] = "Host"
 The domain name of the server (for virtual hosting), and the TCP port number on which the server is Listening. More...
 
static const char HTTP_HEADER_IF_MATCH [] = "If-Match"
 Only perform the action if the client supplied entity matches the same entity on the server. More...
 
static const char HTTP_HEADER_IF_MODIFIED_SINCE [] = "If-Modified-Since"
 Allows a 304 Not Modified to be returned if content is unchanged . More...
 
static const char HTTP_HEADER_IF_NONE_MATCH [] = "If-None-Match"
 Allows a 304 Not Modified to be returned if content is unchanged, see HTTP ETag . More...
 
static const char HTTP_HEADER_IF_RANGE [] = "If-Range"
 If the entity is unchanged, send me the part(s) that I am missing; otherwise, send me the entire new entity . More...
 
static const char HTTP_HEADER_IF_UNMODIFIED_SINCE [] = "If-Unmodified-Since"
 Only send the response if the entity has not been modified since a specific time. More...
 
static const char HTTP_HEADER_MAX_FORWARDS [] = "Max-Forwards"
 Limit the number of times the message can be forwarded through proxies or gateways. More...
 
static const char HTTP_HEADER_ORIGIN [] = "Origin"
 Initiates a request for cross-origin resource sharing (asks server for an 'Access-Control-Allow-Origin' response field) . More...
 
static const char HTTP_HEADER_PRAGMA [] = "Pragma"
 Implementation-specific fields that may have various effects anywhere along the request-response chain. More...
 
static const char HTTP_HEADER_PROXY_AUTHORIZATION [] = "Proxy-Authorization"
 Authorization credentials for connecting to a proxy. More...
 
static const char HTTP_HEADER_RANGE [] = "Range"
 Request only part of an entity. More...
 
static const char HTTP_HEADER_REFERER [] = "Referer"
 This is the address of the previous web page from which a link to the currently requested page was followed. More...
 
static const char HTTP_HEADER_TE [] = "TE"
 The transfer encodings the user agent is willing to accept: the same values as for the response header field Transfer-Encoding can be used, plus the "trailers" value (related to the "chunked" transfer method) to notify the server it expects to receive additional fields in the trailer after the last, zero-sized, packet. More...
 
static const char HTTP_HEADER_USER_AGENT [] = "User-Agent"
 The user agent string of the user agent . More...
 
static const char HTTP_HEADER_UPGRADE [] = "Upgrade"
 Ask the server to upgrade to another protocol. More...
 
static const char HTTP_HEADER_VIA [] = "Via"
 Informs the server of proxies through which the request was sent. More...
 
static const char HTTP_HEADER_WARNING [] = "Warning"
 A general warning about possible problems with the entity body. More...
 
static const char HTTP_HEADER_ACCESS_CONTROL_ALLOW_ORIGIN [] = "Access-Control-Allow-Origin"
 Specifying which web sites can participate in cross-origin resource sharing . More...
 
static const char HTTP_HEADER_ACCEPT_PATCH [] = "Accept-Patch"
 Specifies which patch document formats this server supports . More...
 
static const char HTTP_HEADER_ACCEPT_RANGES [] = "Accept-Ranges"
 What partial content range types this server supports . More...
 
static const char HTTP_HEADER_AGE [] = "Age"
 The age the object has been in a proxy cache in seconds . More...
 
static const char HTTP_HEADER_ALLOW [] = "Allow"
 Valid actions for a specified resource. More...
 
static const char HTTP_HEADER_CONTENT_ENCODING [] = "Content-Encoding"
 The type of encoding used on the data. More...
 
static const char HTTP_HEADER_CONTENT_LANGUAGE [] = "Content-Language"
 The language the content is in . More...
 
static const char HTTP_HEADER_CONTENT_LOCATION [] = "Content-Location"
 An alternate location for the returned data . More...
 
static const char HTTP_HEADER_CONTENT_DISPOSITION [] = "Content-Disposition"
 An opportunity to raise a "File Download" dialogue box for a known MIME type with binary format or suggest a filename for dynamic content. More...
 
static const char HTTP_HEADER_CONTENT_RANGE [] = "Content-Range"
 Where in a full body message this partial message belongs . More...
 
static const char HTTP_HEADER_ETAG [] = "ETag"
 An identifier for a specific version of a resource, often a message digest . More...
 
static const char HTTP_HEADER_EXPIRES [] = "Expires"
 Gives the date/time after which the response is considered stale (in "HTTP-date" format as defined by RFC 7231) . More...
 
static const char HTTP_HEADER_LAST_MODIFIED [] = "Last-Modified"
 The last modified date for the requested object (in "HTTP-date" format as defined by RFC 7231) . More...
 
static const char HTTP_HEADER_LINK [] = "Link"
 Used to express a typed relationship with another resource, where the relation type is defined by RFC 5988 . More...
 
static const char HTTP_HEADER_LOCATION [] = "Location"
 Used in redirection, or when a new resource has been created. More...
 
static const char HTTP_HEADER_P3P [] = "P3P"
 This field is supposed to set P3P policy, in the form of P3P:CP="your_compact_policy". More...
 
static const char HTTP_HEADER_PROXY_AUTHENTICATE [] = "Proxy-Authenticate"
 Request authentication to access the proxy. More...
 
static const char HTTP_HEADER_REFRESH [] = "Refresh"
 Used in redirection, or when a new resource has been created. More...
 
static const char HTTP_HEADER_RETRY_AFTER [] = "Retry-After"
 If an entity is temporarily unavailable, this instructs the client to try again later. More...
 
static const char HTTP_HEADER_SERVER [] = "Server"
 A name for the server . More...
 
static const char HTTP_HEADER_SET_COOKIE [] = "Set-Cookie"
 An HTTP cookie . More...
 
static const char HTTP_HEADER_STATUS [] = "Status"
 CGI header field specifying the status of the HTTP response. More...
 
static const char HTTP_HEADER_STRICT_TRANSPORT_SECURITY [] = "Strict-Transport-Security"
 A HSTS Policy informing the HTTP client how long to cache the HTTPS only policy and whether this applies to subdomains. More...
 
static const char HTTP_HEADER_TRAILER [] = "Trailer"
 The Trailer general field value indicates that the given set of header fields is present in the trailer of a message encoded with chunked transfer coding. More...
 
static const char HTTP_HEADER_TRANSFER_ENCODING [] = "Transfer-Encoding"
 The form of encoding used to safely transfer the entity to the user. More...
 
static const char HTTP_HEADER_VARY [] = "Vary"
 Tells downstream proxies how to match future request headers to decide whether the cached response can be used rather than requesting a fresh one from the origin server. More...
 
static const char HTTP_HEADER_WWW_AUTHENTICATE [] = "WWW-Authenticate"
 Indicates the authentication scheme that should be used to access the requested entity. More...
 

Detailed Description

List of common HTTP headers

Variable Documentation

const char HTTP_HEADER_ACCEPT[] = "Accept"
static

Content-Types that are acceptable for the response.

See Content negotiation.

Definition at line 173 of file HTTPConstants.h.

const char HTTP_HEADER_ACCEPT_CHARSET[] = "Accept-Charset"
static

Character sets that are acceptable .

Definition at line 174 of file HTTPConstants.h.

const char HTTP_HEADER_ACCEPT_DATETIME[] = "Accept-Datetime"
static

Acceptable version in time .

Definition at line 177 of file HTTPConstants.h.

const char HTTP_HEADER_ACCEPT_ENCODING[] = "Accept-Encoding"
static

List of acceptable encodings.

See HTTP compression.

Definition at line 175 of file HTTPConstants.h.

const char HTTP_HEADER_ACCEPT_LANGUAGE[] = "Accept-Language"
static

List of acceptable human languages for response.

See Content negotiation.

Definition at line 176 of file HTTPConstants.h.

const char HTTP_HEADER_ACCEPT_PATCH[] = "Accept-Patch"
static

Specifies which patch document formats this server supports .

Definition at line 206 of file HTTPConstants.h.

const char HTTP_HEADER_ACCEPT_RANGES[] = "Accept-Ranges"
static

What partial content range types this server supports .

Definition at line 207 of file HTTPConstants.h.

const char HTTP_HEADER_ACCESS_CONTROL_ALLOW_ORIGIN[] = "Access-Control-Allow-Origin"
static

Specifying which web sites can participate in cross-origin resource sharing .

Definition at line 205 of file HTTPConstants.h.

const char HTTP_HEADER_AGE[] = "Age"
static

The age the object has been in a proxy cache in seconds .

Definition at line 208 of file HTTPConstants.h.

const char HTTP_HEADER_ALLOW[] = "Allow"
static

Valid actions for a specified resource.

To be used for a 405 Method not allowed .

Definition at line 209 of file HTTPConstants.h.

const char HTTP_HEADER_AUTHORIZATION[] = "Authorization"
static

Authentication credentials for HTTP authentication .

Definition at line 178 of file HTTPConstants.h.

const char HTTP_HEADER_CACHE_CONTROL[] = "Cache-Control"
static

Used to specify directives that must be obeyed by all caching mechanisms along the request-response chain .

Definition at line 179 of file HTTPConstants.h.

const char HTTP_HEADER_CONNECTION[] = "Connection"
static

Control options for the current connection and List of hop-by-hop request fields[8] .

Definition at line 180 of file HTTPConstants.h.

const char HTTP_HEADER_CONTENT_DISPOSITION[] = "Content-Disposition"
static

An opportunity to raise a "File Download" dialogue box for a known MIME type with binary format or suggest a filename for dynamic content.

Quotes are necessary with special characters.

Definition at line 213 of file HTTPConstants.h.

const char HTTP_HEADER_CONTENT_ENCODING[] = "Content-Encoding"
static

The type of encoding used on the data.

See HTTP compression.

Definition at line 210 of file HTTPConstants.h.

const char HTTP_HEADER_CONTENT_LANGUAGE[] = "Content-Language"
static

The language the content is in .

Definition at line 211 of file HTTPConstants.h.

const char HTTP_HEADER_CONTENT_LENGTH[] = "Content-Length"
static

The length of the request body in octets (8-bit bytes) .

Definition at line 182 of file HTTPConstants.h.

const char HTTP_HEADER_CONTENT_LOCATION[] = "Content-Location"
static

An alternate location for the returned data .

Definition at line 212 of file HTTPConstants.h.

const char HTTP_HEADER_CONTENT_MD5[] = "Content-MD5"
static

A Base64-encoded binary MD5 sum of the content of the request body .

Definition at line 183 of file HTTPConstants.h.

const char HTTP_HEADER_CONTENT_RANGE[] = "Content-Range"
static

Where in a full body message this partial message belongs .

Definition at line 214 of file HTTPConstants.h.

const char HTTP_HEADER_CONTENT_TYPE[] = "Content-Type"
static

The MIME type of the body of the request (used with POST and PUT requests) .

Definition at line 184 of file HTTPConstants.h.

const char HTTP_HEADER_COOKIE[] = "Cookie"
static

An HTTP cookie previously sent by the server with Set-Cookie (below) .

Definition at line 181 of file HTTPConstants.h.

const char HTTP_HEADER_DATE[] = "Date"
static

The date and time that the message was sent (in "HTTP-date" format as defined by RFC 7231 Date/Time Formats) .

Definition at line 185 of file HTTPConstants.h.

const char HTTP_HEADER_ETAG[] = "ETag"
static

An identifier for a specific version of a resource, often a message digest .

Definition at line 215 of file HTTPConstants.h.

const char HTTP_HEADER_EXPECT[] = "Expect"
static

Indicates that particular server behaviors are required by the client .

Definition at line 186 of file HTTPConstants.h.

const char HTTP_HEADER_EXPIRES[] = "Expires"
static

Gives the date/time after which the response is considered stale (in "HTTP-date" format as defined by RFC 7231) .

Definition at line 216 of file HTTPConstants.h.

const char HTTP_HEADER_FROM[] = "From"
static

The email address of the user making the request .

Definition at line 187 of file HTTPConstants.h.

const char HTTP_HEADER_HOST[] = "Host"
static

The domain name of the server (for virtual hosting), and the TCP port number on which the server is Listening.

The port number may be omitted if the port is the standard port for the service requested.

Definition at line 188 of file HTTPConstants.h.

const char HTTP_HEADER_IF_MATCH[] = "If-Match"
static

Only perform the action if the client supplied entity matches the same entity on the server.

This is mainly for methods like PUT to only update a resource if it has not been modified since the user last updated it.

Definition at line 189 of file HTTPConstants.h.

const char HTTP_HEADER_IF_MODIFIED_SINCE[] = "If-Modified-Since"
static

Allows a 304 Not Modified to be returned if content is unchanged .

Definition at line 190 of file HTTPConstants.h.

const char HTTP_HEADER_IF_NONE_MATCH[] = "If-None-Match"
static

Allows a 304 Not Modified to be returned if content is unchanged, see HTTP ETag .

Definition at line 191 of file HTTPConstants.h.

const char HTTP_HEADER_IF_RANGE[] = "If-Range"
static

If the entity is unchanged, send me the part(s) that I am missing; otherwise, send me the entire new entity .

Definition at line 192 of file HTTPConstants.h.

const char HTTP_HEADER_IF_UNMODIFIED_SINCE[] = "If-Unmodified-Since"
static

Only send the response if the entity has not been modified since a specific time.

Definition at line 193 of file HTTPConstants.h.

const char HTTP_HEADER_LAST_MODIFIED[] = "Last-Modified"
static

The last modified date for the requested object (in "HTTP-date" format as defined by RFC 7231) .

Definition at line 217 of file HTTPConstants.h.

const char HTTP_HEADER_LINK[] = "Link"
static

Used to express a typed relationship with another resource, where the relation type is defined by RFC 5988 .

Definition at line 218 of file HTTPConstants.h.

const char HTTP_HEADER_LOCATION[] = "Location"
static

Used in redirection, or when a new resource has been created.

Definition at line 219 of file HTTPConstants.h.

const char HTTP_HEADER_MAX_FORWARDS[] = "Max-Forwards"
static

Limit the number of times the message can be forwarded through proxies or gateways.

Definition at line 194 of file HTTPConstants.h.

const char HTTP_HEADER_ORIGIN[] = "Origin"
static

Initiates a request for cross-origin resource sharing (asks server for an 'Access-Control-Allow-Origin' response field) .

Definition at line 195 of file HTTPConstants.h.

const char HTTP_HEADER_P3P[] = "P3P"
static

This field is supposed to set P3P policy, in the form of P3P:CP="your_compact_policy".

However, P3P did not take off,[31] most browsers have never fully implemented it, a lot of websites set this field with fake policy text, that was enough to fool browsers the existence of P3P policy and grant permissions for third party cookies.

Definition at line 220 of file HTTPConstants.h.

const char HTTP_HEADER_PRAGMA[] = "Pragma"
static

Implementation-specific fields that may have various effects anywhere along the request-response chain.

Definition at line 196 of file HTTPConstants.h.

const char HTTP_HEADER_PROXY_AUTHENTICATE[] = "Proxy-Authenticate"
static

Request authentication to access the proxy.

Definition at line 221 of file HTTPConstants.h.

const char HTTP_HEADER_PROXY_AUTHORIZATION[] = "Proxy-Authorization"
static

Authorization credentials for connecting to a proxy.

Definition at line 197 of file HTTPConstants.h.

const char HTTP_HEADER_RANGE[] = "Range"
static

Request only part of an entity.

Bytes are numbered from 0. See Byte serving.

Definition at line 198 of file HTTPConstants.h.

const char HTTP_HEADER_REFERER[] = "Referer"
static

This is the address of the previous web page from which a link to the currently requested page was followed.

(The word “referrer” has been misspelled in the RFC as well as in most implementations to the point that it has become standard usage and is considered correct terminology) .

Definition at line 199 of file HTTPConstants.h.

const char HTTP_HEADER_REFRESH[] = "Refresh"
static

Used in redirection, or when a new resource has been created.

This refresh redirects after 5 seconds.

Definition at line 222 of file HTTPConstants.h.

const char HTTP_HEADER_RETRY_AFTER[] = "Retry-After"
static

If an entity is temporarily unavailable, this instructs the client to try again later.

Value could be a specified period of time (in seconds) or a HTTP-date.[32] .

Definition at line 223 of file HTTPConstants.h.

const char HTTP_HEADER_SERVER[] = "Server"
static

A name for the server .

Definition at line 224 of file HTTPConstants.h.

const char HTTP_HEADER_SET_COOKIE[] = "Set-Cookie"
static

An HTTP cookie .

Definition at line 225 of file HTTPConstants.h.

const char HTTP_HEADER_STATUS[] = "Status"
static

CGI header field specifying the status of the HTTP response.

Normal HTTP responses use a separate "Status-Line" instead, defined by RFC 7230.[33] .

Definition at line 226 of file HTTPConstants.h.

const char HTTP_HEADER_STRICT_TRANSPORT_SECURITY[] = "Strict-Transport-Security"
static

A HSTS Policy informing the HTTP client how long to cache the HTTPS only policy and whether this applies to subdomains.

Definition at line 227 of file HTTPConstants.h.

const char HTTP_HEADER_TE[] = "TE"
static

The transfer encodings the user agent is willing to accept: the same values as for the response header field Transfer-Encoding can be used, plus the "trailers" value (related to the "chunked" transfer method) to notify the server it expects to receive additional fields in the trailer after the last, zero-sized, packet.

Definition at line 200 of file HTTPConstants.h.

const char HTTP_HEADER_TRAILER[] = "Trailer"
static

The Trailer general field value indicates that the given set of header fields is present in the trailer of a message encoded with chunked transfer coding.

Definition at line 228 of file HTTPConstants.h.

const char HTTP_HEADER_TRANSFER_ENCODING[] = "Transfer-Encoding"
static

The form of encoding used to safely transfer the entity to the user.

Currently defined methods are: chunked, compress, deflate, gzip, identity.

Definition at line 229 of file HTTPConstants.h.

const char HTTP_HEADER_UPGRADE[] = "Upgrade"
static

Ask the server to upgrade to another protocol.

Definition at line 202 of file HTTPConstants.h.

const char HTTP_HEADER_USER_AGENT[] = "User-Agent"
static

The user agent string of the user agent .

Definition at line 201 of file HTTPConstants.h.

const char HTTP_HEADER_VARY[] = "Vary"
static

Tells downstream proxies how to match future request headers to decide whether the cached response can be used rather than requesting a fresh one from the origin server.

Definition at line 230 of file HTTPConstants.h.

const char HTTP_HEADER_VIA[] = "Via"
static

Informs the server of proxies through which the request was sent.

Definition at line 203 of file HTTPConstants.h.

const char HTTP_HEADER_WARNING[] = "Warning"
static

A general warning about possible problems with the entity body.

Definition at line 204 of file HTTPConstants.h.

const char HTTP_HEADER_WWW_AUTHENTICATE[] = "WWW-Authenticate"
static

Indicates the authentication scheme that should be used to access the requested entity.

Definition at line 231 of file HTTPConstants.h.