1 #ifndef SQUID_HTTP_REGISTEREDHEADERS_H
2 #define SQUID_HTTP_REGISTEREDHEADERS_H
4 /// recognized or "known" header fields; and the RFC which defines them (or not)
5 /// http://www.iana.org/assignments/message-headers/message-headers.xhtml
8 HDR_ACCEPT
= 0, /**< RFC 7231 */
9 HDR_ACCEPT_CHARSET
, /**< RFC 7231 */
10 HDR_ACCEPT_ENCODING
, /**< RFC 7231 */
11 /*HDR_ACCEPT_FEATURES,*/ /* RFC 2295 */
12 HDR_ACCEPT_LANGUAGE
, /**< RFC 7231 */
13 HDR_ACCEPT_RANGES
, /**< RFC 7233 */
14 HDR_AGE
, /**< RFC 7234 */
15 HDR_ALLOW
, /**< RFC 7231 */
16 HDR_AUTHENTICATION_INFO
, /**< RFC 2617 */
17 HDR_AUTHORIZATION
, /**< RFC 7235, 4559 */
18 HDR_CACHE_CONTROL
, /**< RFC 7234 */
19 HDR_CONNECTION
, /**< RFC 7230 */
20 HDR_CONTENT_BASE
, /**< obsoleted RFC 2068 */
21 HDR_CONTENT_DISPOSITION
, /**< RFC 2183, 6266 */
22 HDR_CONTENT_ENCODING
, /**< RFC 7231 */
23 HDR_CONTENT_LANGUAGE
, /**< RFC 7231 */
24 HDR_CONTENT_LENGTH
, /**< RFC 7230 */
25 HDR_CONTENT_LOCATION
, /**< RFC 7231 */
26 HDR_CONTENT_MD5
, /**< deprecated, RFC 2616 */
27 HDR_CONTENT_RANGE
, /**< RFC 7233 */
28 HDR_CONTENT_TYPE
, /**< RFC 7231 */
29 HDR_COOKIE
, /**< RFC 6265 header we may need to erase */
30 HDR_COOKIE2
, /**< obsolete RFC 2965 header we may need to erase */
31 HDR_DATE
, /**< RFC 7231 */
32 /*HDR_DAV,*/ /* RFC 2518 */
33 /*HDR_DEPTH,*/ /* RFC 2518 */
34 /*HDR_DERIVED_FROM,*/ /* deprecated RFC 2068 */
35 /*HDR_DESTINATION,*/ /* RFC 2518 */
36 HDR_ETAG
, /**< RFC 7232 */
37 HDR_EXPECT
, /**< RFC 7231 */
38 HDR_EXPIRES
, /**< RFC 7234 */
39 HDR_FORWARDED
, /**< RFC 7239 */
40 HDR_FROM
, /**< RFC 7231 */
41 HDR_HOST
, /**< RFC 7230 */
42 HDR_HTTP2_SETTINGS
, /**< HTTP/2.0 upgrade header. see draft-ietf-httpbis-http2-13 */
43 /*HDR_IF,*/ /* RFC 2518 */
44 HDR_IF_MATCH
, /**< RFC 7232 */
45 HDR_IF_MODIFIED_SINCE
, /**< RFC 7232 */
46 HDR_IF_NONE_MATCH
, /**< RFC 7232 */
47 HDR_IF_RANGE
, /**< RFC 7233 */
48 HDR_IF_UNMODIFIED_SINCE
, /**< RFC 7232 */
49 HDR_KEEP_ALIVE
, /**< obsoleted RFC 2068 header we may need to erase */
50 HDR_KEY
, /**< experimental RFC Draft draft-fielding-http-key-02 */
51 HDR_LAST_MODIFIED
, /**< RFC 7232 */
52 HDR_LINK
, /**< RFC 5988 */
53 HDR_LOCATION
, /**< RFC 7231 */
54 /*HDR_LOCK_TOKEN,*/ /* RFC 2518 */
55 HDR_MAX_FORWARDS
, /**< RFC 7231 */
56 HDR_MIME_VERSION
, /**< RFC 2045, 7231 */
57 HDR_NEGOTIATE
, /**< experimental RFC 2295. Why only this one from 2295? */
58 /*HDR_OVERWRITE,*/ /* RFC 2518 */
59 HDR_ORIGIN
, /* CORS Draft specification (see http://www.w3.org/TR/cors/) */
60 HDR_PRAGMA
, /**< RFC 7234 */
61 HDR_PROXY_AUTHENTICATE
, /**< RFC 7235 */
62 HDR_PROXY_AUTHENTICATION_INFO
, /**< RFC 2617 */
63 HDR_PROXY_AUTHORIZATION
, /**< RFC 7235 */
64 HDR_PROXY_CONNECTION
, /**< obsolete Netscape header we may need to erase. */
65 HDR_PROXY_SUPPORT
, /**< RFC 4559 */
66 HDR_PUBLIC
, /**< RFC 2068 */
67 HDR_RANGE
, /**< RFC 7233 */
68 HDR_REFERER
, /**< RFC 7231 */
69 HDR_REQUEST_RANGE
, /**< some clients use this, sigh */
70 HDR_RETRY_AFTER
, /**< RFC 7231 */
71 HDR_SERVER
, /**< RFC 7231 */
72 HDR_SET_COOKIE
, /**< RFC 6265 header we may need to erase */
73 HDR_SET_COOKIE2
, /**< obsoleted RFC 2965 header we may need to erase */
74 /*HDR_STATUS_URI,*/ /* RFC 2518 */
75 /*HDR_TCN,*/ /* experimental RFC 2295 */
76 HDR_TE
, /**< RFC 7230 */
77 /*HDR_TIMEOUT,*/ /* RFC 2518 */
78 HDR_TITLE
, /* obsolete draft suggested header */
79 HDR_TRAILER
, /**< RFC 7230 */
80 HDR_TRANSFER_ENCODING
, /**< RFC 7230 */
81 HDR_TRANSLATE
, /**< IIS custom header we may need to erase */
82 HDR_UNLESS_MODIFIED_SINCE
, /**< IIS custom header we may need to erase */
83 HDR_UPGRADE
, /**< RFC 7230 */
84 HDR_USER_AGENT
, /**< RFC 7231 */
85 /*HDR_VARIANT_VARY,*/ /* experimental RFC 2295 */
86 HDR_VARY
, /**< RFC 7231 */
87 HDR_VIA
, /**< RFC 7230 */
88 HDR_WARNING
, /**< RFC 7234 */
89 HDR_WWW_AUTHENTICATE
, /**< RFC 7235, 4559 */
90 HDR_X_CACHE
, /**< Squid custom header */
91 HDR_X_CACHE_LOOKUP
, /**< Squid custom header. temporary hack that became de-facto. TODO remove */
92 HDR_X_FORWARDED_FOR
, /**< obsolete Squid custom header, RFC 7239 */
93 HDR_X_REQUEST_URI
, /**< Squid custom header appended if ADD_X_REQUEST_URI is defined */
94 HDR_X_SQUID_ERROR
, /**< Squid custom header on generated error responses */
95 #if X_ACCELERATOR_VARY
96 HDR_X_ACCELERATOR_VARY
, /**< obsolete Squid custom header. */
99 HDR_X_NEXT_SERVICES
, /**< Squid custom ICAP header */
101 HDR_SURROGATE_CAPABILITY
, /**< Edge Side Includes (ESI) header */
102 HDR_SURROGATE_CONTROL
, /**< Edge Side Includes (ESI) header */
103 HDR_FRONT_END_HTTPS
, /**< MS Exchange custom header we may have to add */
104 HDR_FTP_COMMAND
, /**< Internal header for FTP command */
105 HDR_FTP_ARGUMENTS
, /**< Internal header for FTP command arguments */
106 HDR_FTP_PRE
, /**< Internal header containing leading FTP control response lines */
107 HDR_FTP_STATUS
, /**< Internal header for FTP reply status */
108 HDR_FTP_REASON
, /**< Internal header for FTP reply reason */
109 HDR_OTHER
, /**< internal tag value for "unknown" headers */
113 #endif /* SQUID_HTTP_REGISTEREDHEADERS_H */