http_types/headers/
constants.rs1use super::HeaderName;
2
3pub const CONTENT_ENCODING: HeaderName = HeaderName::from_lowercase_str("content-encoding");
5pub const CONTENT_LANGUAGE: HeaderName = HeaderName::from_lowercase_str("content-language");
7pub const CONTENT_LENGTH: HeaderName = HeaderName::from_lowercase_str("content-length");
9pub const CONTENT_LOCATION: HeaderName = HeaderName::from_lowercase_str("content-location");
11pub const CONTENT_MD5: HeaderName = HeaderName::from_lowercase_str("content-md5");
13pub const CONTENT_RANGE: HeaderName = HeaderName::from_lowercase_str("content-range");
15pub const CONTENT_TYPE: HeaderName = HeaderName::from_lowercase_str("content-type");
17
18pub const COOKIE: HeaderName = HeaderName::from_lowercase_str("cookie");
20
21pub const SET_COOKIE: HeaderName = HeaderName::from_lowercase_str("set-cookie");
23
24pub const TRANSFER_ENCODING: HeaderName = HeaderName::from_lowercase_str("transfer-encoding");
26
27pub const DATE: HeaderName = HeaderName::from_lowercase_str("date");
29
30pub const HOST: HeaderName = HeaderName::from_lowercase_str("host");
32
33pub const ORIGIN: HeaderName = HeaderName::from_lowercase_str("origin");
35
36pub const ACCESS_CONTROL_MAX_AGE: HeaderName =
38 HeaderName::from_lowercase_str("access-control-max-age");
39pub const ACCESS_CONTROL_ALLOW_ORIGIN: HeaderName =
41 HeaderName::from_lowercase_str("access-control-allow-origin");
42pub const ACCESS_CONTROL_ALLOW_HEADERS: HeaderName =
44 HeaderName::from_lowercase_str("access-control-allow-headers");
45pub const ACCESS_CONTROL_ALLOW_METHODS: HeaderName =
47 HeaderName::from_lowercase_str("access-control-allow-methods");
48pub const ACCESS_CONTROL_EXPOSE_HEADERS: HeaderName =
50 HeaderName::from_lowercase_str("access-control-expose-headers");
51pub const ACCESS_CONTROL_REQUEST_METHOD: HeaderName =
53 HeaderName::from_lowercase_str("access-control-request-method");
54pub const ACCESS_CONTROL_REQUEST_HEADERS: HeaderName =
56 HeaderName::from_lowercase_str("access-control-request-headers");
57pub const ACCESS_CONTROL_ALLOW_CREDENTIALS: HeaderName =
59 HeaderName::from_lowercase_str("access-control-allow-credentials");
60
61pub const ACCEPT: HeaderName = HeaderName::from_lowercase_str("accept");
63pub const ACCEPT_CHARSET: HeaderName = HeaderName::from_lowercase_str("accept-charset");
65pub const ACCEPT_ENCODING: HeaderName = HeaderName::from_lowercase_str("accept-encoding");
67pub const ACCEPT_LANGUAGE: HeaderName = HeaderName::from_lowercase_str("accept-language");
69pub const ACCEPT_RANGES: HeaderName = HeaderName::from_lowercase_str("accept-ranges");
71
72pub const AGE: HeaderName = HeaderName::from_lowercase_str("age");
74
75pub const ALLOW: HeaderName = HeaderName::from_lowercase_str("allow");
77
78pub const AUTHORIZATION: HeaderName = HeaderName::from_lowercase_str("authorization");
80
81pub const CACHE_CONTROL: HeaderName = HeaderName::from_lowercase_str("cache-control");
83
84pub const CLEAR_SITE_DATA: HeaderName = HeaderName::from_lowercase_str("clear-site-data");
86
87pub const CONNECTION: HeaderName = HeaderName::from_lowercase_str("connection");
89
90pub const ETAG: HeaderName = HeaderName::from_lowercase_str("etag");
92
93pub const EXPECT: HeaderName = HeaderName::from_lowercase_str("expect");
95
96pub const EXPIRES: HeaderName = HeaderName::from_lowercase_str("expires");
98
99pub const FORWARDED: HeaderName = HeaderName::from_lowercase_str("forwarded");
101
102pub const FROM: HeaderName = HeaderName::from_lowercase_str("from");
104
105pub const IF_MATCH: HeaderName = HeaderName::from_lowercase_str("if-match");
107
108pub const IF_MODIFIED_SINCE: HeaderName = HeaderName::from_lowercase_str("if-modified-since");
110
111pub const IF_NONE_MATCH: HeaderName = HeaderName::from_lowercase_str("if-none-match");
113
114pub const IF_RANGE: HeaderName = HeaderName::from_lowercase_str("if-range");
116
117pub const IF_UNMODIFIED_SINCE: HeaderName = HeaderName::from_lowercase_str("if-unmodified-since");
119
120pub const LAST_MODIFIED: HeaderName = HeaderName::from_lowercase_str("last-modified");
122
123pub const LOCATION: HeaderName = HeaderName::from_lowercase_str("location");
125
126pub const MAX_FORWARDS: HeaderName = HeaderName::from_lowercase_str("max-forwards");
128
129pub const PRAGMA: HeaderName = HeaderName::from_lowercase_str("pragma");
131
132pub const PROXY_AUTHENTICATE: HeaderName = HeaderName::from_lowercase_str("proxy-authenticate");
134
135pub const PROXY_AUTHORIZATION: HeaderName = HeaderName::from_lowercase_str("proxy-authorization");
137
138pub const PROXY_CONNECTION: HeaderName = HeaderName::from_lowercase_str("proxy-connection");
140
141pub const REFERER: HeaderName = HeaderName::from_lowercase_str("referer");
143
144pub const RETRY_AFTER: HeaderName = HeaderName::from_lowercase_str("retry-after");
146
147pub const SERVER: HeaderName = HeaderName::from_lowercase_str("server");
149
150pub const SERVER_TIMING: HeaderName = HeaderName::from_lowercase_str("server-timing");
152
153pub const SOURCE_MAP: HeaderName = HeaderName::from_lowercase_str("sourcemap");
155
156pub const TE: HeaderName = HeaderName::from_lowercase_str("te");
158
159pub const TIMING_ALLOW_ORIGIN: HeaderName = HeaderName::from_lowercase_str("timing-allow-origin");
161
162pub const TRACEPARENT: HeaderName = HeaderName::from_lowercase_str("traceparent");
164
165pub const TRAILER: HeaderName = HeaderName::from_lowercase_str("trailer");
167
168pub const UPGRADE: HeaderName = HeaderName::from_lowercase_str("upgrade");
170
171pub const USER_AGENT: HeaderName = HeaderName::from_lowercase_str("user-agent");
173
174pub const VARY: HeaderName = HeaderName::from_lowercase_str("vary");
176
177pub const VIA: HeaderName = HeaderName::from_lowercase_str("via");
179
180pub const WARNING: HeaderName = HeaderName::from_lowercase_str("warning");
182
183pub const WWW_AUTHENTICATE: HeaderName = HeaderName::from_lowercase_str("www-authenticate");