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