http_types/headers/
constants.rs

1use super::HeaderName;
2
3/// The `Content-Encoding` Header
4pub const CONTENT_ENCODING: HeaderName = HeaderName::from_lowercase_str("content-encoding");
5/// The `Content-Language` Header
6pub const CONTENT_LANGUAGE: HeaderName = HeaderName::from_lowercase_str("content-language");
7/// The `Content-Length` Header
8pub const CONTENT_LENGTH: HeaderName = HeaderName::from_lowercase_str("content-length");
9/// The `Content-Location` Header
10pub const CONTENT_LOCATION: HeaderName = HeaderName::from_lowercase_str("content-location");
11/// The `Content-MD5` Header
12pub const CONTENT_MD5: HeaderName = HeaderName::from_lowercase_str("content-md5");
13/// The `Content-Range` Header
14pub const CONTENT_RANGE: HeaderName = HeaderName::from_lowercase_str("content-range");
15/// The `Content-Type` Header
16pub const CONTENT_TYPE: HeaderName = HeaderName::from_lowercase_str("content-type");
17
18/// The `Cookie` Header
19pub const COOKIE: HeaderName = HeaderName::from_lowercase_str("cookie");
20
21/// The `Set-Cookie` Header
22pub const SET_COOKIE: HeaderName = HeaderName::from_lowercase_str("set-cookie");
23
24/// The `Transfer-Encoding` Header
25pub const TRANSFER_ENCODING: HeaderName = HeaderName::from_lowercase_str("transfer-encoding");
26
27/// The `Date` Header
28pub const DATE: HeaderName = HeaderName::from_lowercase_str("date");
29
30/// The `Host` Header
31pub const HOST: HeaderName = HeaderName::from_lowercase_str("host");
32
33/// The `Origin` Header
34pub const ORIGIN: HeaderName = HeaderName::from_lowercase_str("origin");
35
36/// The `access-control-max-age` Header
37pub const ACCESS_CONTROL_MAX_AGE: HeaderName =
38    HeaderName::from_lowercase_str("access-control-max-age");
39/// The `access-control-allow-origin` Header
40pub const ACCESS_CONTROL_ALLOW_ORIGIN: HeaderName =
41    HeaderName::from_lowercase_str("access-control-allow-origin");
42/// The `access-control-allow-headers` Header
43pub const ACCESS_CONTROL_ALLOW_HEADERS: HeaderName =
44    HeaderName::from_lowercase_str("access-control-allow-headers");
45/// The `access-control-allow-methods` Header
46pub const ACCESS_CONTROL_ALLOW_METHODS: HeaderName =
47    HeaderName::from_lowercase_str("access-control-allow-methods");
48/// The `access-control-expose-headers` Header
49pub const ACCESS_CONTROL_EXPOSE_HEADERS: HeaderName =
50    HeaderName::from_lowercase_str("access-control-expose-headers");
51/// The `access-control-request-method` Header
52pub const ACCESS_CONTROL_REQUEST_METHOD: HeaderName =
53    HeaderName::from_lowercase_str("access-control-request-method");
54/// The `access-control-request-headers` Header
55pub const ACCESS_CONTROL_REQUEST_HEADERS: HeaderName =
56    HeaderName::from_lowercase_str("access-control-request-headers");
57/// The `access-control-allow-credentials` Header
58pub const ACCESS_CONTROL_ALLOW_CREDENTIALS: HeaderName =
59    HeaderName::from_lowercase_str("access-control-allow-credentials");
60
61///  The `Accept` Header
62pub const ACCEPT: HeaderName = HeaderName::from_lowercase_str("accept");
63///  The `Accept-Charset` Header
64pub const ACCEPT_CHARSET: HeaderName = HeaderName::from_lowercase_str("accept-charset");
65///  The `Accept-Encoding` Header
66pub const ACCEPT_ENCODING: HeaderName = HeaderName::from_lowercase_str("accept-encoding");
67///  The `Accept-Language` Header
68pub const ACCEPT_LANGUAGE: HeaderName = HeaderName::from_lowercase_str("accept-language");
69///  The `Accept-Ranges` Header
70pub const ACCEPT_RANGES: HeaderName = HeaderName::from_lowercase_str("accept-ranges");
71
72///  The `Age` Header
73pub const AGE: HeaderName = HeaderName::from_lowercase_str("age");
74
75///  The `Allow` Header
76pub const ALLOW: HeaderName = HeaderName::from_lowercase_str("allow");
77
78///  The `Authorization` Header
79pub const AUTHORIZATION: HeaderName = HeaderName::from_lowercase_str("authorization");
80
81///  The `Cache-Control` Header
82pub const CACHE_CONTROL: HeaderName = HeaderName::from_lowercase_str("cache-control");
83
84///  The `Clear-Site-Data` Header
85pub const CLEAR_SITE_DATA: HeaderName = HeaderName::from_lowercase_str("clear-site-data");
86
87///  The `Connection` Header
88pub const CONNECTION: HeaderName = HeaderName::from_lowercase_str("connection");
89
90///  The `ETag` Header
91pub const ETAG: HeaderName = HeaderName::from_lowercase_str("etag");
92
93///  The `Expect` Header
94pub const EXPECT: HeaderName = HeaderName::from_lowercase_str("expect");
95
96///  The `Expires` Header
97pub const EXPIRES: HeaderName = HeaderName::from_lowercase_str("expires");
98
99/// The `Forwarded` Header
100pub const FORWARDED: HeaderName = HeaderName::from_lowercase_str("forwarded");
101
102///  The `From` Header
103pub const FROM: HeaderName = HeaderName::from_lowercase_str("from");
104
105///  The `If-Match` Header
106pub const IF_MATCH: HeaderName = HeaderName::from_lowercase_str("if-match");
107
108///  The `If-Modified-Since` Header
109pub const IF_MODIFIED_SINCE: HeaderName = HeaderName::from_lowercase_str("if-modified-since");
110
111///  The `If-None-Match` Header
112pub const IF_NONE_MATCH: HeaderName = HeaderName::from_lowercase_str("if-none-match");
113
114///  The `If-Range` Header
115pub const IF_RANGE: HeaderName = HeaderName::from_lowercase_str("if-range");
116
117///  The `If-Unmodified-Since` Header
118pub const IF_UNMODIFIED_SINCE: HeaderName = HeaderName::from_lowercase_str("if-unmodified-since");
119
120///  The `Last-Modified` Header
121pub const LAST_MODIFIED: HeaderName = HeaderName::from_lowercase_str("last-modified");
122
123///  The `Location` Header
124pub const LOCATION: HeaderName = HeaderName::from_lowercase_str("location");
125
126///  The `Max-Forwards` Header
127pub const MAX_FORWARDS: HeaderName = HeaderName::from_lowercase_str("max-forwards");
128
129///  The `Pragma` Header
130pub const PRAGMA: HeaderName = HeaderName::from_lowercase_str("pragma");
131
132///  The `Proxy-Authenticate` Header
133pub const PROXY_AUTHENTICATE: HeaderName = HeaderName::from_lowercase_str("proxy-authenticate");
134
135///  The `Proxy-Authorization` Header
136pub const PROXY_AUTHORIZATION: HeaderName = HeaderName::from_lowercase_str("proxy-authorization");
137
138/// The `Proxy-Connection` Header
139pub const PROXY_CONNECTION: HeaderName = HeaderName::from_lowercase_str("proxy-connection");
140
141///  The `Referer` Header
142pub const REFERER: HeaderName = HeaderName::from_lowercase_str("referer");
143
144///  The `Retry-After` Header
145pub const RETRY_AFTER: HeaderName = HeaderName::from_lowercase_str("retry-after");
146
147///  The `Server` Header
148pub const SERVER: HeaderName = HeaderName::from_lowercase_str("server");
149
150///  The `Server` Header
151pub const SERVER_TIMING: HeaderName = HeaderName::from_lowercase_str("server-timing");
152
153///  The `SourceMap` Header
154pub const SOURCE_MAP: HeaderName = HeaderName::from_lowercase_str("sourcemap");
155
156///  The `Te` Header
157pub const TE: HeaderName = HeaderName::from_lowercase_str("te");
158
159///  The `Timing-Allow-Origin` Header
160pub const TIMING_ALLOW_ORIGIN: HeaderName = HeaderName::from_lowercase_str("timing-allow-origin");
161
162///  The `Traceparent` Header
163pub const TRACEPARENT: HeaderName = HeaderName::from_lowercase_str("traceparent");
164
165///  The `Trailer` Header
166pub const TRAILER: HeaderName = HeaderName::from_lowercase_str("trailer");
167
168///  The `Upgrade` Header
169pub const UPGRADE: HeaderName = HeaderName::from_lowercase_str("upgrade");
170
171///  The `User-Agent` Header
172pub const USER_AGENT: HeaderName = HeaderName::from_lowercase_str("user-agent");
173
174///  The `Vary` Header
175pub const VARY: HeaderName = HeaderName::from_lowercase_str("vary");
176
177///  The `Via` Header
178pub const VIA: HeaderName = HeaderName::from_lowercase_str("via");
179
180///  The `Warning` Header
181pub const WARNING: HeaderName = HeaderName::from_lowercase_str("warning");
182
183///  The `WWW-Authenticate` Header
184pub const WWW_AUTHENTICATE: HeaderName = HeaderName::from_lowercase_str("www-authenticate");