http_types_rs/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 = HeaderName::from_lowercase_str("access-control-max-age");
38/// The `access-control-allow-origin` Header
39pub const ACCESS_CONTROL_ALLOW_ORIGIN: HeaderName = HeaderName::from_lowercase_str("access-control-allow-origin");
40/// The `access-control-allow-headers` Header
41pub const ACCESS_CONTROL_ALLOW_HEADERS: HeaderName = HeaderName::from_lowercase_str("access-control-allow-headers");
42/// The `access-control-allow-methods` Header
43pub const ACCESS_CONTROL_ALLOW_METHODS: HeaderName = HeaderName::from_lowercase_str("access-control-allow-methods");
44/// The `access-control-expose-headers` Header
45pub const ACCESS_CONTROL_EXPOSE_HEADERS: HeaderName = HeaderName::from_lowercase_str("access-control-expose-headers");
46/// The `access-control-request-method` Header
47pub const ACCESS_CONTROL_REQUEST_METHOD: HeaderName = HeaderName::from_lowercase_str("access-control-request-method");
48/// The `access-control-request-headers` Header
49pub const ACCESS_CONTROL_REQUEST_HEADERS: HeaderName = HeaderName::from_lowercase_str("access-control-request-headers");
50/// The `access-control-allow-credentials` Header
51pub const ACCESS_CONTROL_ALLOW_CREDENTIALS: HeaderName = HeaderName::from_lowercase_str("access-control-allow-credentials");
52
53///  The `Accept` Header
54pub const ACCEPT: HeaderName = HeaderName::from_lowercase_str("accept");
55///  The `Accept-Charset` Header
56pub const ACCEPT_CHARSET: HeaderName = HeaderName::from_lowercase_str("accept-charset");
57///  The `Accept-Encoding` Header
58pub const ACCEPT_ENCODING: HeaderName = HeaderName::from_lowercase_str("accept-encoding");
59///  The `Accept-Language` Header
60pub const ACCEPT_LANGUAGE: HeaderName = HeaderName::from_lowercase_str("accept-language");
61///  The `Accept-Ranges` Header
62pub const ACCEPT_RANGES: HeaderName = HeaderName::from_lowercase_str("accept-ranges");
63
64///  The `Age` Header
65pub const AGE: HeaderName = HeaderName::from_lowercase_str("age");
66
67///  The `Allow` Header
68pub const ALLOW: HeaderName = HeaderName::from_lowercase_str("allow");
69
70///  The `Authorization` Header
71pub const AUTHORIZATION: HeaderName = HeaderName::from_lowercase_str("authorization");
72
73///  The `Cache-Control` Header
74pub const CACHE_CONTROL: HeaderName = HeaderName::from_lowercase_str("cache-control");
75
76///  The `Clear-Site-Data` Header
77pub const CLEAR_SITE_DATA: HeaderName = HeaderName::from_lowercase_str("clear-site-data");
78
79///  The `Connection` Header
80pub const CONNECTION: HeaderName = HeaderName::from_lowercase_str("connection");
81
82///  The `ETag` Header
83pub const ETAG: HeaderName = HeaderName::from_lowercase_str("etag");
84
85///  The `Expect` Header
86pub const EXPECT: HeaderName = HeaderName::from_lowercase_str("expect");
87
88///  The `Expires` Header
89pub const EXPIRES: HeaderName = HeaderName::from_lowercase_str("expires");
90
91/// The `Forwarded` Header
92pub const FORWARDED: HeaderName = HeaderName::from_lowercase_str("forwarded");
93
94///  The `From` Header
95pub const FROM: HeaderName = HeaderName::from_lowercase_str("from");
96
97///  The `If-Match` Header
98pub const IF_MATCH: HeaderName = HeaderName::from_lowercase_str("if-match");
99
100///  The `If-Modified-Since` Header
101pub const IF_MODIFIED_SINCE: HeaderName = HeaderName::from_lowercase_str("if-modified-since");
102
103///  The `If-None-Match` Header
104pub const IF_NONE_MATCH: HeaderName = HeaderName::from_lowercase_str("if-none-match");
105
106///  The `If-Range` Header
107pub const IF_RANGE: HeaderName = HeaderName::from_lowercase_str("if-range");
108
109///  The `If-Unmodified-Since` Header
110pub const IF_UNMODIFIED_SINCE: HeaderName = HeaderName::from_lowercase_str("if-unmodified-since");
111
112///  The `Last-Modified` Header
113pub const LAST_MODIFIED: HeaderName = HeaderName::from_lowercase_str("last-modified");
114
115///  The `Location` Header
116pub const LOCATION: HeaderName = HeaderName::from_lowercase_str("location");
117
118///  The `Max-Forwards` Header
119pub const MAX_FORWARDS: HeaderName = HeaderName::from_lowercase_str("max-forwards");
120
121///  The `Pragma` Header
122pub const PRAGMA: HeaderName = HeaderName::from_lowercase_str("pragma");
123
124///  The `Proxy-Authenticate` Header
125pub const PROXY_AUTHENTICATE: HeaderName = HeaderName::from_lowercase_str("proxy-authenticate");
126
127///  The `Proxy-Authorization` Header
128pub const PROXY_AUTHORIZATION: HeaderName = HeaderName::from_lowercase_str("proxy-authorization");
129
130/// The `Proxy-Connection` Header
131pub const PROXY_CONNECTION: HeaderName = HeaderName::from_lowercase_str("proxy-connection");
132
133///  The `Referer` Header
134pub const REFERER: HeaderName = HeaderName::from_lowercase_str("referer");
135
136///  The `Retry-After` Header
137pub const RETRY_AFTER: HeaderName = HeaderName::from_lowercase_str("retry-after");
138
139///  The `Server` Header
140pub const SERVER: HeaderName = HeaderName::from_lowercase_str("server");
141
142///  The `Server` Header
143pub const SERVER_TIMING: HeaderName = HeaderName::from_lowercase_str("server-timing");
144
145///  The `SourceMap` Header
146pub const SOURCE_MAP: HeaderName = HeaderName::from_lowercase_str("sourcemap");
147
148///  The `Strict-Transport-Security` Header
149pub const STRICT_TRANSPORT_SECURITY: HeaderName = HeaderName::from_lowercase_str("strict-transport-security");
150
151///  The `Te` Header
152pub const TE: HeaderName = HeaderName::from_lowercase_str("te");
153
154///  The `Timing-Allow-Origin` Header
155pub const TIMING_ALLOW_ORIGIN: HeaderName = HeaderName::from_lowercase_str("timing-allow-origin");
156
157///  The `Traceparent` Header
158pub const TRACEPARENT: HeaderName = HeaderName::from_lowercase_str("traceparent");
159
160///  The `Trailer` Header
161pub const TRAILER: HeaderName = HeaderName::from_lowercase_str("trailer");
162
163///  The `Upgrade` Header
164pub const UPGRADE: HeaderName = HeaderName::from_lowercase_str("upgrade");
165
166///  The `User-Agent` Header
167pub const USER_AGENT: HeaderName = HeaderName::from_lowercase_str("user-agent");
168
169///  The `Vary` Header
170pub const VARY: HeaderName = HeaderName::from_lowercase_str("vary");
171
172///  The `Via` Header
173pub const VIA: HeaderName = HeaderName::from_lowercase_str("via");
174
175///  The `Warning` Header
176pub const WARNING: HeaderName = HeaderName::from_lowercase_str("warning");
177
178///  The `WWW-Authenticate` Header
179pub const WWW_AUTHENTICATE: HeaderName = HeaderName::from_lowercase_str("www-authenticate");