TianoCore EDK2 master
Loading...
Searching...
No Matches
Http11.h
Go to the documentation of this file.
1
10#ifndef __HTTP_11_H__
11#define __HTTP_11_H__
12
13#pragma pack(1)
14
21#define HTTP_VERSION "HTTP/1.1"
22
29#define HTTP_METHOD_OPTIONS "OPTIONS"
30#define HTTP_METHOD_GET "GET"
31#define HTTP_METHOD_HEAD "HEAD"
32#define HTTP_METHOD_POST "POST"
33#define HTTP_METHOD_PUT "PUT"
34#define HTTP_METHOD_DELETE "DELETE"
35#define HTTP_METHOD_TRACE "TRACE"
36#define HTTP_METHOD_CONNECT "CONNECT"
37#define HTTP_METHOD_PATCH "PATCH"
38
43#define HTTP_METHOD_MAXIMUM_LEN sizeof (HTTP_METHOD_CONNECT)
44
52#define HTTP_HEADER_ACCEPT "Accept"
53
61#define HTTP_HEADER_ACCEPT_CHARSET "Accept-Charset"
62
69#define HTTP_HEADER_ACCEPT_LANGUAGE "Accept-Language"
70
76#define HTTP_HEADER_ACCEPT_RANGES "Accept-Ranges"
77
83#define HTTP_HEADER_ACCEPT_ENCODING "Accept-Encoding"
84
94#define HTTP_HEADER_CONTENT_ENCODING "Content-Encoding"
95
99
100#define HTTP_CONTENT_ENCODING_IDENTITY "identity"
101#define HTTP_CONTENT_ENCODING_GZIP "gzip"
102#define HTTP_CONTENT_ENCODING_COMPRESS "compress"
103#define HTTP_CONTENT_ENCODING_DEFLATE "deflate"
105
112#define HTTP_HEADER_CONTENT_TYPE "Content-Type"
113//
114// Common Media Types defined in http://www.iana.org/assignments/media-types/media-types.xhtml
115//
116#define HTTP_CONTENT_TYPE_APP_JSON "application/json"
117#define HTTP_CONTENT_TYPE_APP_OCTET_STREAM "application/octet-stream"
118
119#define HTTP_CONTENT_TYPE_TEXT_HTML "text/html"
120#define HTTP_CONTENT_TYPE_TEXT_PLAIN "text/plain"
121#define HTTP_CONTENT_TYPE_TEXT_CSS "text/css"
122#define HTTP_CONTENT_TYPE_TEXT_XML "text/xml"
123
124#define HTTP_CONTENT_TYPE_IMAGE_GIF "image/gif"
125#define HTTP_CONTENT_TYPE_IMAGE_JPEG "image/jpeg"
126#define HTTP_CONTENT_TYPE_IMAGE_PNG "image/png"
127#define HTTP_CONTENT_TYPE_IMAGE_SVG_XML "image/svg+xml"
128
135#define HTTP_HEADER_CONTENT_LENGTH "Content-Length"
136
144#define HTTP_HEADER_TRANSFER_ENCODING "Transfer-Encoding"
145#define HTTP_HEADER_TRANSFER_ENCODING_CHUNKED "chunked"
146#define CHUNKED_TRANSFER_CODING_CR '\r'
147#define CHUNKED_TRANSFER_CODING_LF '\n'
148#define CHUNKED_TRANSFER_CODING_LAST_CHUNK '0'
149#define CHUNKED_TRANSFER_CODING_EXTENSION_SEPARATOR ';'
150
163#define HTTP_HEADER_USER_AGENT "User-Agent"
164
171#define HTTP_HEADER_HOST "Host"
172
182#define HTTP_HEADER_LOCATION "Location"
183
194#define HTTP_HEADER_IF_MATCH "If-Match"
195
205#define HTTP_HEADER_IF_NONE_MATCH "If-None-Match"
206
213#define HTTP_HEADER_WWW_AUTHENTICATE "WWW-Authenticate"
214
221#define HTTP_HEADER_AUTHORIZATION "Authorization"
222
228#define HTTP_HEADER_ETAG "ETag"
229
235#define HTTP_HEADER_X_AUTH_TOKEN "X-Auth-Token"
236
244#define HTTP_HEADER_EXPECT "Expect"
245
249#define HTTP_EXPECT_100_CONTINUE "100-continue"
250
256#define HTTP_HEADER_CONTENT_RANGE "Content-Range"
257
267#define HTTP_HEADER_LAST_MODIFIED "Last-Modified"
268
277#define HTTP_HEADER_IF_UNMODIFIED_SINCE "If-Unmodified-Since"
278
279#pragma pack()
280
281#endif