TianoCore EDK2 master
Loading...
Searching...
No Matches
Http11.h File Reference

Go to the source code of this file.

Macros

#define HTTP_VERSION   "HTTP/1.1"
 
#define HTTP_METHOD_OPTIONS   "OPTIONS"
 
#define HTTP_METHOD_GET   "GET"
 
#define HTTP_METHOD_HEAD   "HEAD"
 
#define HTTP_METHOD_POST   "POST"
 
#define HTTP_METHOD_PUT   "PUT"
 
#define HTTP_METHOD_DELETE   "DELETE"
 
#define HTTP_METHOD_TRACE   "TRACE"
 
#define HTTP_METHOD_CONNECT   "CONNECT"
 
#define HTTP_METHOD_PATCH   "PATCH"
 
#define HTTP_METHOD_MAXIMUM_LEN   sizeof (HTTP_METHOD_CONNECT)
 
#define HTTP_HEADER_ACCEPT   "Accept"
 
#define HTTP_HEADER_ACCEPT_CHARSET   "Accept-Charset"
 
#define HTTP_HEADER_ACCEPT_LANGUAGE   "Accept-Language"
 
#define HTTP_HEADER_ACCEPT_RANGES   "Accept-Ranges"
 
#define HTTP_HEADER_ACCEPT_ENCODING   "Accept-Encoding"
 
#define HTTP_HEADER_CONTENT_ENCODING   "Content-Encoding"
 
#define HTTP_CONTENT_ENCODING_IDENTITY   "identity"
 
#define HTTP_CONTENT_ENCODING_GZIP   "gzip"
 
#define HTTP_CONTENT_ENCODING_COMPRESS   "compress"
 
#define HTTP_CONTENT_ENCODING_DEFLATE   "deflate"
 
#define HTTP_HEADER_CONTENT_TYPE   "Content-Type"
 
#define HTTP_CONTENT_TYPE_APP_JSON   "application/json"
 
#define HTTP_CONTENT_TYPE_APP_OCTET_STREAM   "application/octet-stream"
 
#define HTTP_CONTENT_TYPE_TEXT_HTML   "text/html"
 
#define HTTP_CONTENT_TYPE_TEXT_PLAIN   "text/plain"
 
#define HTTP_CONTENT_TYPE_TEXT_CSS   "text/css"
 
#define HTTP_CONTENT_TYPE_TEXT_XML   "text/xml"
 
#define HTTP_CONTENT_TYPE_IMAGE_GIF   "image/gif"
 
#define HTTP_CONTENT_TYPE_IMAGE_JPEG   "image/jpeg"
 
#define HTTP_CONTENT_TYPE_IMAGE_PNG   "image/png"
 
#define HTTP_CONTENT_TYPE_IMAGE_SVG_XML   "image/svg+xml"
 
#define HTTP_HEADER_CONTENT_LENGTH   "Content-Length"
 
#define HTTP_HEADER_TRANSFER_ENCODING   "Transfer-Encoding"
 
#define HTTP_HEADER_TRANSFER_ENCODING_CHUNKED   "chunked"
 
#define CHUNKED_TRANSFER_CODING_CR   '\r'
 
#define CHUNKED_TRANSFER_CODING_LF   '\n'
 
#define CHUNKED_TRANSFER_CODING_LAST_CHUNK   '0'
 
#define CHUNKED_TRANSFER_CODING_EXTENSION_SEPARATOR   ';'
 
#define HTTP_HEADER_USER_AGENT   "User-Agent"
 
#define HTTP_HEADER_HOST   "Host"
 
#define HTTP_HEADER_LOCATION   "Location"
 
#define HTTP_HEADER_IF_MATCH   "If-Match"
 
#define HTTP_HEADER_IF_NONE_MATCH   "If-None-Match"
 
#define HTTP_HEADER_WWW_AUTHENTICATE   "WWW-Authenticate"
 
#define HTTP_HEADER_AUTHORIZATION   "Authorization"
 
#define HTTP_HEADER_ETAG   "ETag"
 
#define HTTP_HEADER_X_AUTH_TOKEN   "X-Auth-Token"
 
#define HTTP_HEADER_EXPECT   "Expect"
 
#define HTTP_EXPECT_100_CONTINUE   "100-continue"
 
#define HTTP_HEADER_CONTENT_RANGE   "Content-Range"
 
#define HTTP_HEADER_LAST_MODIFIED   "Last-Modified"
 
#define HTTP_HEADER_IF_UNMODIFIED_SINCE   "If-Unmodified-Since"
 

Detailed Description

Hypertext Transfer Protocol – HTTP/1.1 Standard definitions, from RFC 2616

This file contains common HTTP 1.1 definitions from RFC 2616

(C) Copyright 2015-2016 Hewlett Packard Enterprise Development LP
SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file Http11.h.

Macro Definition Documentation

◆ CHUNKED_TRANSFER_CODING_CR

#define CHUNKED_TRANSFER_CODING_CR   '\r'

Definition at line 146 of file Http11.h.

◆ CHUNKED_TRANSFER_CODING_EXTENSION_SEPARATOR

#define CHUNKED_TRANSFER_CODING_EXTENSION_SEPARATOR   ';'

Definition at line 149 of file Http11.h.

◆ CHUNKED_TRANSFER_CODING_LAST_CHUNK

#define CHUNKED_TRANSFER_CODING_LAST_CHUNK   '0'

Definition at line 148 of file Http11.h.

◆ CHUNKED_TRANSFER_CODING_LF

#define CHUNKED_TRANSFER_CODING_LF   '\n'

Definition at line 147 of file Http11.h.

◆ HTTP_CONTENT_ENCODING_COMPRESS

#define HTTP_CONTENT_ENCODING_COMPRESS   "compress"

Definition at line 102 of file Http11.h.

◆ HTTP_CONTENT_ENCODING_DEFLATE

#define HTTP_CONTENT_ENCODING_DEFLATE   "deflate"

Definition at line 104 of file Http11.h.

◆ HTTP_CONTENT_ENCODING_GZIP

#define HTTP_CONTENT_ENCODING_GZIP   "gzip"

Definition at line 101 of file Http11.h.

◆ HTTP_CONTENT_ENCODING_IDENTITY

#define HTTP_CONTENT_ENCODING_IDENTITY   "identity"

HTTP Content-Encoding Compression types

Definition at line 100 of file Http11.h.

◆ HTTP_CONTENT_TYPE_APP_JSON

#define HTTP_CONTENT_TYPE_APP_JSON   "application/json"

Definition at line 116 of file Http11.h.

◆ HTTP_CONTENT_TYPE_APP_OCTET_STREAM

#define HTTP_CONTENT_TYPE_APP_OCTET_STREAM   "application/octet-stream"

Definition at line 117 of file Http11.h.

◆ HTTP_CONTENT_TYPE_IMAGE_GIF

#define HTTP_CONTENT_TYPE_IMAGE_GIF   "image/gif"

Definition at line 124 of file Http11.h.

◆ HTTP_CONTENT_TYPE_IMAGE_JPEG

#define HTTP_CONTENT_TYPE_IMAGE_JPEG   "image/jpeg"

Definition at line 125 of file Http11.h.

◆ HTTP_CONTENT_TYPE_IMAGE_PNG

#define HTTP_CONTENT_TYPE_IMAGE_PNG   "image/png"

Definition at line 126 of file Http11.h.

◆ HTTP_CONTENT_TYPE_IMAGE_SVG_XML

#define HTTP_CONTENT_TYPE_IMAGE_SVG_XML   "image/svg+xml"

Definition at line 127 of file Http11.h.

◆ HTTP_CONTENT_TYPE_TEXT_CSS

#define HTTP_CONTENT_TYPE_TEXT_CSS   "text/css"

Definition at line 121 of file Http11.h.

◆ HTTP_CONTENT_TYPE_TEXT_HTML

#define HTTP_CONTENT_TYPE_TEXT_HTML   "text/html"

Definition at line 119 of file Http11.h.

◆ HTTP_CONTENT_TYPE_TEXT_PLAIN

#define HTTP_CONTENT_TYPE_TEXT_PLAIN   "text/plain"

Definition at line 120 of file Http11.h.

◆ HTTP_CONTENT_TYPE_TEXT_XML

#define HTTP_CONTENT_TYPE_TEXT_XML   "text/xml"

Definition at line 122 of file Http11.h.

◆ HTTP_EXPECT_100_CONTINUE

#define HTTP_EXPECT_100_CONTINUE   "100-continue"

Expect Header Value

Definition at line 249 of file Http11.h.

◆ HTTP_HEADER_ACCEPT

#define HTTP_HEADER_ACCEPT   "Accept"

Accept Request Header The Accept request-header field can be used to specify certain media types which are acceptable for the response. Accept headers can be used to indicate that the request is specifically limited to a small set of desired types, as in the case of a request for an in-line image.

Definition at line 52 of file Http11.h.

◆ HTTP_HEADER_ACCEPT_CHARSET

#define HTTP_HEADER_ACCEPT_CHARSET   "Accept-Charset"

Accept-Charset Request Header The Accept-Charset request-header field can be used to indicate what character sets are acceptable for the response. This field allows clients capable of understanding more comprehensive or special-purpose character sets to signal that capability to a server which is capable of representing documents in those character sets.

Definition at line 61 of file Http11.h.

◆ HTTP_HEADER_ACCEPT_ENCODING

#define HTTP_HEADER_ACCEPT_ENCODING   "Accept-Encoding"

Accept-Encoding Request Header The Accept-Encoding request-header field is similar to Accept, but restricts the content-codings that are acceptable in the response.

Definition at line 83 of file Http11.h.

◆ HTTP_HEADER_ACCEPT_LANGUAGE

#define HTTP_HEADER_ACCEPT_LANGUAGE   "Accept-Language"

Accept-Language Request Header The Accept-Language request-header field is similar to Accept, but restricts the set of natural languages that are preferred as a response to the request.

Definition at line 69 of file Http11.h.

◆ HTTP_HEADER_ACCEPT_RANGES

#define HTTP_HEADER_ACCEPT_RANGES   "Accept-Ranges"

Accept-Ranges Request Header The Accept-Ranges response-header field allows the server to indicate its acceptance of range requests for a resource:

Definition at line 76 of file Http11.h.

◆ HTTP_HEADER_AUTHORIZATION

#define HTTP_HEADER_AUTHORIZATION   "Authorization"

Authorization Request Header The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.

Definition at line 221 of file Http11.h.

◆ HTTP_HEADER_CONTENT_ENCODING

#define HTTP_HEADER_CONTENT_ENCODING   "Content-Encoding"

Content-Encoding Header The Content-Encoding entity-header field is used as a modifier to the media-type. When present, its value indicates what additional content codings have been applied to the entity-body, and thus what decoding mechanisms must be applied in order to obtain the media-type referenced by the Content-Type header field. Content-Encoding is primarily used to allow a document to be compressed without losing the identity of its underlying media type.

Definition at line 94 of file Http11.h.

◆ HTTP_HEADER_CONTENT_LENGTH

#define HTTP_HEADER_CONTENT_LENGTH   "Content-Length"

Content-Length Header The Content-Length entity-header field indicates the size of the entity-body, in decimal number of OCTETs, sent to the recipient or, in the case of the HEAD method, the size of the entity-body that would have been sent had the request been a GET.

Definition at line 135 of file Http11.h.

◆ HTTP_HEADER_CONTENT_RANGE

#define HTTP_HEADER_CONTENT_RANGE   "Content-Range"

Content-Range Response Header The Content-Range response HTTP header indicates where in a full body message a partial message belongs.

Definition at line 256 of file Http11.h.

◆ HTTP_HEADER_CONTENT_TYPE

#define HTTP_HEADER_CONTENT_TYPE   "Content-Type"

Content-Type Header The Content-Type entity-header field indicates the media type of the entity-body sent to the recipient or, in the case of the HEAD method, the media type that would have been sent had the request been a GET.

Definition at line 112 of file Http11.h.

◆ HTTP_HEADER_ETAG

#define HTTP_HEADER_ETAG   "ETag"

ETAG Response Header The ETag response-header field provides the current value of the entity tag for the requested variant.

Definition at line 228 of file Http11.h.

◆ HTTP_HEADER_EXPECT

#define HTTP_HEADER_EXPECT   "Expect"

Expect Header The "Expect" header field in a request indicates a certain set of behaviors (expectations) that need to be supported by the server in order to properly handle this request. The only such expectation defined by this specification is 100-continue.

Definition at line 244 of file Http11.h.

◆ HTTP_HEADER_HOST

#define HTTP_HEADER_HOST   "Host"

Host Request Header

The Host request-header field specifies the Internet host and port number of the resource being requested, as obtained from the original URI given by the user or referring resource

Definition at line 171 of file Http11.h.

◆ HTTP_HEADER_IF_MATCH

#define HTTP_HEADER_IF_MATCH   "If-Match"

The If-Match request-header field is used with a method to make it conditional. A client that has one or more entities previously obtained from the resource can verify that one of those entities is current by including a list of their associated entity tags in the If-Match header field. The purpose of this feature is to allow efficient updates of cached information with a minimum amount of transaction overhead. It is also used, on updating requests, to prevent inadvertent modification of the wrong version of a resource. As a special case, the value "*" matches any current entity of the resource.

Definition at line 194 of file Http11.h.

◆ HTTP_HEADER_IF_NONE_MATCH

#define HTTP_HEADER_IF_NONE_MATCH   "If-None-Match"

The If-None-Match request-header field is used with a method to make it conditional. A client that has one or more entities previously obtained from the resource can verify that none of those entities is current by including a list of their associated entity tags in the If-None-Match header field. The purpose of this feature is to allow efficient updates of cached information with a minimum amount of transaction overhead. It is also used to prevent a method (e.g. PUT) from inadvertently modifying an existing resource when the client believes that the resource does not exist.

Definition at line 205 of file Http11.h.

◆ HTTP_HEADER_IF_UNMODIFIED_SINCE

#define HTTP_HEADER_IF_UNMODIFIED_SINCE   "If-Unmodified-Since"

If Unmodified Since Request Header Makes the request for the resource conditional: the server will send the requested resource or accept it in the case of a POST or another non-safe method only if the resource has not been modified after the date specified by this HTTP header. If the resource has been modified after the specified date, the response will be a 412 Precondition Failed error.

Definition at line 277 of file Http11.h.

◆ HTTP_HEADER_LAST_MODIFIED

#define HTTP_HEADER_LAST_MODIFIED   "Last-Modified"

Last-Modified Response Header The Last-Modified response HTTP header contains a date and time when the origin server believes the resource was last modified. It is used as a validator to determine if the resource is the same as the previously stored one. Less accurate than an ETag header, it is a fallback mechanism. Conditional requests containing If-Modified-Since or If-Unmodified-Since headers make use of this field.

Definition at line 267 of file Http11.h.

◆ HTTP_HEADER_LOCATION

#define HTTP_HEADER_LOCATION   "Location"

Location Response Header

The Location response-header field is used to redirect the recipient to a location other than the Request-URI for completion of the request or identification of a new resource. For 201 (Created) responses, the Location is that of the new resource which was created by the request. For 3xx responses, the location SHOULD indicate the server's preferred URI for automatic redirection to the resource. The field value consists of a single absolute URI.

Definition at line 182 of file Http11.h.

◆ HTTP_HEADER_TRANSFER_ENCODING

#define HTTP_HEADER_TRANSFER_ENCODING   "Transfer-Encoding"

Transfer-Encoding Header The Transfer-Encoding general-header field indicates what (if any) type of transformation has been applied to the message body in order to safely transfer it between the sender and the recipient. This differs from the content-coding in that the transfer-coding is a property of the message, not of the entity.

Definition at line 144 of file Http11.h.

◆ HTTP_HEADER_TRANSFER_ENCODING_CHUNKED

#define HTTP_HEADER_TRANSFER_ENCODING_CHUNKED   "chunked"

Definition at line 145 of file Http11.h.

◆ HTTP_HEADER_USER_AGENT

#define HTTP_HEADER_USER_AGENT   "User-Agent"

User Agent Request Header

The User-Agent request-header field contains information about the user agent originating the request. This is for statistical purposes, the tracing of protocol violations, and automated recognition of user agents for the sake of tailoring responses to avoid particular user agent limitations. User agents SHOULD include this field with requests. The field can contain multiple product tokens and comments identifying the agent and any subproducts which form a significant part of the user agent. By convention, the product tokens are listed in order of their significance for identifying the application.

Definition at line 163 of file Http11.h.

◆ HTTP_HEADER_WWW_AUTHENTICATE

#define HTTP_HEADER_WWW_AUTHENTICATE   "WWW-Authenticate"

The WWW-Authenticate Response Header If a server receives a request for an access-protected object, and an acceptable Authorization header is not sent, the server responds with a "401 Unauthorized" status code, and a WWW-Authenticate header.

Definition at line 213 of file Http11.h.

◆ HTTP_HEADER_X_AUTH_TOKEN

#define HTTP_HEADER_X_AUTH_TOKEN   "X-Auth-Token"

Custom header field checked by the iLO web server to specify a client session key. Example: X-Auth-Token: 24de6b1f8fa147ad59f6452def628798

Definition at line 235 of file Http11.h.

◆ HTTP_METHOD_CONNECT

#define HTTP_METHOD_CONNECT   "CONNECT"

Definition at line 36 of file Http11.h.

◆ HTTP_METHOD_DELETE

#define HTTP_METHOD_DELETE   "DELETE"

Definition at line 34 of file Http11.h.

◆ HTTP_METHOD_GET

#define HTTP_METHOD_GET   "GET"

Definition at line 30 of file Http11.h.

◆ HTTP_METHOD_HEAD

#define HTTP_METHOD_HEAD   "HEAD"

Definition at line 31 of file Http11.h.

◆ HTTP_METHOD_MAXIMUM_LEN

#define HTTP_METHOD_MAXIMUM_LEN   sizeof (HTTP_METHOD_CONNECT)

Connect method has maximum length according to EFI_HTTP_METHOD defined in UEFI2.5 spec so use this.

Definition at line 43 of file Http11.h.

◆ HTTP_METHOD_OPTIONS

#define HTTP_METHOD_OPTIONS   "OPTIONS"

HTTP Request Method definitions

The Method token indicates the method to be performed on the resource identified by the Request-URI. The method is case-sensitive.

Definition at line 29 of file Http11.h.

◆ HTTP_METHOD_PATCH

#define HTTP_METHOD_PATCH   "PATCH"

Definition at line 37 of file Http11.h.

◆ HTTP_METHOD_POST

#define HTTP_METHOD_POST   "POST"

Definition at line 32 of file Http11.h.

◆ HTTP_METHOD_PUT

#define HTTP_METHOD_PUT   "PUT"

Definition at line 33 of file Http11.h.

◆ HTTP_METHOD_TRACE

#define HTTP_METHOD_TRACE   "TRACE"

Definition at line 35 of file Http11.h.

◆ HTTP_VERSION

#define HTTP_VERSION   "HTTP/1.1"

HTTP Version (currently HTTP 1.1)

The version of an HTTP message is indicated by an HTTP-Version field in the first line of the message.

Definition at line 21 of file Http11.h.