http_constant/header_key/
const.rs

1/// The HTTP header field name `server`.
2pub const SERVER: &str = "server";
3
4/// The HTTP header field name `accept`.
5pub const ACCEPT: &str = "accept";
6
7/// The HTTP header field name `accept-encoding`, used to specify acceptable content encodings.
8pub const ACCEPT_ENCODING: &str = "accept-encoding";
9
10/// The HTTP header field name `accept-language`, used to specify preferred languages for the response.
11pub const ACCEPT_LANGUAGE: &str = "accept-language";
12
13/// The HTTP header field name `authorization`, used to specify authentication credentials.
14pub const AUTHORIZATION: &str = "authorization";
15
16/// The HTTP header field name `cache-control`, used to specify caching directives.
17pub const CACHE_CONTROL: &str = "cache-control";
18
19/// The HTTP header field name `connection`, used to specify control options for the current connection.
20pub const CONNECTION: &str = "connection";
21
22/// The HTTP header field name `cookie`, used to send cookies from the server to the client.
23pub const COOKIE: &str = "cookie";
24
25/// The HTTP header field name `date`, used to specify the date and time at which the message was sent.
26pub const DATE: &str = "date";
27
28/// The HTTP header field name `etag`, used to specify a unique identifier for a resource version.
29pub const ETAG: &str = "etag";
30
31/// The HTTP header field name `host`, used to specify the host and port number of the server.
32pub const HOST: &str = "host";
33
34/// The HTTP header field name `last-modified`, used to specify the last modification date of the resource.
35pub const LAST_MODIFIED: &str = "last-modified";
36
37/// The HTTP header field name `location`, used to specify the url to redirect a client.
38pub const LOCATION: &str = "location";
39
40/// The HTTP header field name `referer`, used to specify the url of the referring resource.
41pub const REFERER: &str = "referer";
42
43/// The HTTP header field name `set-cookie`, used to send cookies from the server to the client.
44pub const SET_COOKIE: &str = "set-cookie";
45
46/// The HTTP header field name `transfer-encoding`, used to specify the form of encoding used to safely transfer the entity to the user.
47pub const TRANSFER_ENCODING: &str = "transfer-encoding";
48
49/// The HTTP header field name `upgrade`, used to indicate the protocol the client wants to upgrade to.
50pub const UPGRADE: &str = "upgrade";
51
52/// The HTTP header field name `sec-websocket-accept`.
53pub const SEC_WEBSOCKET_ACCEPT: &str = "sec-websocket-accept";
54
55/// The HTTP header field name `sec-websocket-key`.
56pub const SEC_WEBSOCKET_KEY: &str = "sec-websocket-key";
57
58/// The HTTP header field name `sec-websocket-protocol`.
59pub const SEC_WEBSOCKET_VERSION: &str = "sec-websocket-version";
60
61/// The HTTP header field name `sec-websocket-protocol`.
62pub const SEC_WEBSOCKET_PROTOCOL: &str = "sec-websocket-protocol";
63
64/// The HTTP header field name `sec-websocket-extensions`.
65pub const SEC_WEBSOCKET_EXTENSIONS: &str = "sec-websocket-extensions";
66
67/// The HTTP header field name `vary`, used to specify that the response may vary based on certain request headers.
68pub const VARY: &str = "vary";
69
70/// The HTTP header field name `x-frame-options`, used to specify whether a browser should be allowed to render a page in a `<frame>`.
71pub const X_FRAME_OPTIONS: &str = "x-frame-options";
72
73/// The HTTP header field name `x-content-type-options`, used to indicate that the browser should not sniff the mime type of a response.
74pub const X_CONTENT_TYPE_OPTIONS: &str = "x-content-type-options";
75
76/// The HTTP header field name `x-powered-by`, used to indicate the technology used by the server.
77pub const X_POWERED_BY: &str = "x-powered-by";
78
79/// The HTTP header field name `x-requested-with`, used to identify the type of request, typically for ajax requests.
80pub const X_REQUESTED_WITH: &str = "x-requested-with";
81
82/// The HTTP header field name `content-length`.
83pub const CONTENT_LENGTH: &str = "content-length";
84
85/// The HTTP header field name `content-encoding`, used to specify the encoding transformations applied to the response body.
86pub const CONTENT_ENCODING: &str = "content-encoding";
87
88/// The HTTP header field name content-type, used to specify the media type of the resource or the data being sent in an http request or response.
89pub const CONTENT_TYPE: &str = "content-type";
90
91/// The HTTP header field `user-agent`.
92pub const USER_AGENT: &str = "user-agent";
93
94/// The HTTP header field `access-control-allow-origin`, used to specify which origins are allowed to access the resource.
95pub const ACCESS_CONTROL_ALLOW_ORIGIN: &str = "access-control-allow-origin";
96
97/// The HTTP header field `access-control-allow-methods`, used to specify The HTTP methods that are allowed when accessing the resource.
98pub const ACCESS_CONTROL_ALLOW_METHODS: &str = "access-control-allow-methods";
99
100/// The HTTP header field `access-control-allow-headers`, used to specify which http headers can be used during the request.
101pub const ACCESS_CONTROL_ALLOW_HEADERS: &str = "access-control-allow-headers";
102
103/// The HTTP header field `expires`, used to specify the date/time after which the response is considered stale.
104pub const EXPIRES: &str = "expires";
105
106/// The HTTP header field `if-match`, used to make a request conditional based on etag values.
107pub const IF_MATCH: &str = "if-match";
108
109/// The HTTP header field `if-none-match`, used to make a request conditional based on etag values.
110pub const IF_NONE_MATCH: &str = "if-none-match";
111
112/// The HTTP header field `if-modified-since`, used to make a request conditional based on timestamps.
113pub const IF_MODIFIED_SINCE: &str = "if-modified-since";
114
115/// The HTTP header field `if-unmodified-since`, used to make a request conditional based on timestamps.
116pub const IF_UNMODIFIED_SINCE: &str = "if-unmodified-since";
117
118/// The HTTP header field `accept-charset`, used to specify which character sets are acceptable.
119pub const ACCEPT_CHARSET: &str = "accept-charset";
120
121/// The HTTP header field `access-control-max-age`, used to indicate how long the results of a preflight request can be cached.
122pub const ACCESS_CONTROL_MAX_AGE: &str = "access-control-max-age";
123
124/// The HTTP header field `access-control-expose-headers`, used to indicate which headers can be exposed as part of the response.
125pub const ACCESS_CONTROL_EXPOSE_HEADERS: &str = "access-control-expose-headers";
126
127/// The HTTP header field `access-control-request-headers`, used in preflight requests to indicate which headers will be used.
128pub const ACCESS_CONTROL_REQUEST_HEADERS: &str = "access-control-request-headers";
129
130/// The HTTP header field `access-control-request-method`, used in preflight requests to indicate which HTTP method will be used.
131pub const ACCESS_CONTROL_REQUEST_METHOD: &str = "access-control-request-method";
132
133/// The HTTP header field `allow`, used to specify supported HTTP methods.
134pub const ALLOW: &str = "allow";
135
136/// The HTTP header field `content-disposition`, used to indicate how the content should be displayed.
137pub const CONTENT_DISPOSITION: &str = "content-disposition";
138
139/// The HTTP header field `content-language`, used to specify the language of the content.
140pub const CONTENT_LANGUAGE: &str = "content-language";
141
142/// The HTTP header field `content-range`, used to indicate where in the full resource this partial message belongs.
143pub const CONTENT_RANGE: &str = "content-range";
144
145/// The HTTP header field `origin`, used to indicate where the cross-origin request originates from.
146pub const ORIGIN: &str = "origin";
147
148/// The HTTP header field `pragma`, used to include implementation-specific directives.
149pub const PRAGMA: &str = "pragma";
150
151/// The HTTP header field `proxy-authenticate`, used in responses from a proxy to indicate authentication is required.
152pub const PROXY_AUTHENTICATE: &str = "proxy-authenticate";
153
154/// The HTTP header field `proxy-authorization`, used to authenticate with a proxy server.
155pub const PROXY_AUTHORIZATION: &str = "proxy-authorization";
156
157/// The HTTP header field `retry-after`, used to indicate how long to wait before making a new request.
158pub const RETRY_AFTER: &str = "retry-after";
159
160/// The HTTP header field `strict-transport-security`, used to specify that the browser should only connect using HTTPS.
161pub const STRICT_TRANSPORT_SECURITY: &str = "strict-transport-security";
162
163/// The HTTP header field `www-authenticate`, used to indicate the authentication scheme.
164pub const WWW_AUTHENTICATE: &str = "www-authenticate";
165
166/// The HTTP/2 pseudo-header field `:authority`, used to specify the authority portion of the target URI.
167pub const COLON_AUTHORITY: &str = ":authority";
168
169/// The HTTP/2 pseudo-header field `:method`, used to specify the HTTP method.
170pub const COLON_METHOD: &str = ":method";
171
172/// The HTTP/2 pseudo-header field `:path`, used to specify the path and query parts of the target URI.
173pub const COLON_PATH: &str = ":path";
174
175/// The HTTP/2 pseudo-header field `:scheme`, used to specify the scheme portion of the target URI.
176pub const COLON_SCHEME: &str = ":scheme";
177
178/// The HTTP header field `priority`, used to indicate the priority of the request.
179pub const PRIORITY: &str = "priority";
180
181/// The HTTP header field `sec-ch-ua`, used to indicate the user agent's brand and version.
182pub const SEC_CH_UA: &str = "sec-ch-ua";
183
184/// The HTTP header field `sec-ch-ua-mobile`, used to indicate whether the user agent is running on a mobile device.
185pub const SEC_CH_UA_MOBILE: &str = "sec-ch-ua-mobile";
186
187/// The HTTP header field `sec-ch-ua-platform`, used to indicate the platform the user agent is running on.
188pub const SEC_CH_UA_PLATFORM: &str = "sec-ch-ua-platform";
189
190/// The HTTP header field `sec-fetch-dest`, used to indicate the destination of the request.
191pub const SEC_FETCH_DEST: &str = "sec-fetch-dest";
192
193/// The HTTP header field `sec-fetch-mode`, used to indicate the mode of the request.
194pub const SEC_FETCH_MODE: &str = "sec-fetch-mode";
195
196/// The HTTP header field `sec-fetch-site`, used to indicate the relationship between the request initiator's origin and the origin of the requested resource.
197pub const SEC_FETCH_SITE: &str = "sec-fetch-site";
198
199/// The HTTP header field `age`, used to indicate the age of the response in seconds.
200pub const AGE: &str = "age";
201
202/// The HTTP header field `alt-svc`, used to advertise alternative services through which the same resource can be reached.
203pub const ALT_SVC: &str = "alt-svc";
204
205/// The HTTP header field `expect`, used to indicate expectations that need to be fulfilled by the server.
206pub const EXPECT: &str = "expect";
207
208/// The HTTP header field `forwarded`, used to disclose original information of a client connecting to a web server through an HTTP proxy.
209pub const FORWARDED: &str = "forwarded";
210
211/// The HTTP header field `from`, used to specify an Internet email address for a human user.
212pub const FROM: &str = "from";
213
214/// The HTTP header field `link`, used to specify relationships between resources.
215pub const LINK: &str = "link";
216
217/// The HTTP header field `max-forwards`, used to limit the number of times a message can be forwarded through proxies or gateways.
218pub const MAX_FORWARDS: &str = "max-forwards";
219
220/// The HTTP header field `range`, used to specify the range of a resource to be retrieved.
221pub const RANGE: &str = "range";
222
223/// The HTTP header field `te`, used to specify which transfer encodings the user agent is willing to accept.
224pub const TE: &str = "te";
225
226/// The HTTP header field `via`, used to indicate the intermediate protocols and recipients between the user agent and the server.
227pub const VIA: &str = "via";
228
229/// The HTTP header field `dnt`, used to specify the user's tracking preference.
230pub const DNT: &str = "dnt";
231
232/// The HTTP header field `sec-fetch-user`, used to indicate whether the request was triggered by a user activation.
233pub const SEC_FETCH_USER: &str = "sec-fetch-user";
234
235/// The HTTP header field `accept-ranges`, used to specify the range units that can be accepted.
236pub const ACCEPT_RANGES: &str = "accept-ranges";
237
238/// The HTTP header field `content-md5`, used to specify the MD5 checksum of the entity-body.
239pub const CONTENT_MD5: &str = "content-md5";
240
241/// The HTTP header field `content-location`, used to specify the location of the resource.
242pub const CONTENT_LOCATION: &str = "content-location";
243
244/// The HTTP header field `content-security-policy`, used to specify the security policy of the resource.
245pub const CONTENT_SECURITY_POLICY: &str = "content-security-policy";
246
247/// The HTTP header field `content-security-policy-report-only`, used to specify the security policy of the resource.
248pub const CONTENT_SECURITY_POLICY_REPORT_ONLY: &str = "content-security-policy-report-only";
249
250/// The HTTP header field `content-security-policy-report`, used to specify the security policy of the resource.
251pub const CONTENT_SECURITY_POLICY_REPORT: &str = "content-security-policy-report";
252
253/// The HTTP header field `content-security-policy-report-to`, used to specify the security policy of the resource.
254pub const CONTENT_SECURITY_POLICY_REPORT_TO: &str = "content-security-policy-report-to";
255
256/// The HTTP header field `content-security-policy-report-uri`, used to specify the security policy of the resource.
257pub const CONTENT_SECURITY_POLICY_REPORT_URI: &str = "content-security-policy-report-uri";
258
259/// The HTTP header field `x-forwarded-for`, used to identify the originating IP address of a client connecting through a proxy.
260pub const X_FORWARDED_FOR: &str = "x-forwarded-for";
261
262/// The HTTP header field `x-forwarded-host`, used to identify the original host requested by the client.
263pub const X_FORWARDED_HOST: &str = "x-forwarded-host";
264
265/// The HTTP header field `x-forwarded-proto`, used to identify the protocol used by the client to connect to the proxy.
266pub const X_FORWARDED_PROTO: &str = "x-forwarded-proto";
267
268/// The HTTP header field `x-forwarded-port`, used to identify the port used by the client to connect to the proxy.
269pub const X_FORWARDED_PORT: &str = "x-forwarded-port";
270
271/// The HTTP header field `x-real-ip`, used to identify the real IP address of the client.
272pub const X_REAL_IP: &str = "x-real-ip";
273
274/// The HTTP header field `accept-patch`, used to specify which patch document formats are accepted.
275pub const ACCEPT_PATCH: &str = "accept-patch";
276
277/// The HTTP header field `if-range`, used to make a range request conditional.
278pub const IF_RANGE: &str = "if-range";
279
280/// The HTTP header field `warning`, used to carry additional information about the status of a response.
281pub const WARNING_HEADER: &str = "warning";
282
283/// The HTTP header field `upgrade-insecure-requests`, used to signal the server that the client prefers encrypted responses.
284pub const UPGRADE_INSECURE_REQUESTS: &str = "upgrade-insecure-requests";
285
286/// The HTTP header field `x-xss-protection`, used to enable XSS filtering in browsers.
287pub const X_XSS_PROTECTION: &str = "x-xss-protection";
288
289/// The HTTP header field `referrer-policy`, used to control how much referrer information is included with requests.
290pub const REFERRER_POLICY: &str = "referrer-policy";
291
292/// The HTTP header field `feature-policy`, used to control which browser features can be used.
293pub const FEATURE_POLICY: &str = "feature-policy";
294
295/// The HTTP header field `permissions-policy`, used to control which browser features can be used.
296pub const PERMISSIONS_POLICY: &str = "permissions-policy";
297
298/// The HTTP header field `cross-origin-embedder-policy`, used to prevent a document from loading cross-origin resources.
299pub const CROSS_ORIGIN_EMBEDDER_POLICY: &str = "cross-origin-embedder-policy";
300
301/// The HTTP header field `cross-origin-opener-policy`, used to ensure a top-level document does not share a browsing context group.
302pub const CROSS_ORIGIN_OPENER_POLICY: &str = "cross-origin-opener-policy";
303
304/// The HTTP header field `cross-origin-resource-policy`, used to convey a desire that the browser blocks no-cors cross-origin requests.
305pub const CROSS_ORIGIN_RESOURCE_POLICY: &str = "cross-origin-resource-policy";
306
307/// The HTTP header field `timing-allow-origin`, used to specify origins that are allowed to see timing information.
308pub const TIMING_ALLOW_ORIGIN: &str = "timing-allow-origin";
309
310/// The HTTP header field `server-timing`, used to communicate performance metrics about the request-response cycle.
311pub const SERVER_TIMING: &str = "server-timing";
312
313/// The HTTP header field `clear-site-data`, used to clear browsing data associated with the requesting website.
314pub const CLEAR_SITE_DATA: &str = "clear-site-data";
315
316/// The HTTP header field `early-data`, used to indicate that the request was sent in TLS early data.
317pub const EARLY_DATA: &str = "early-data";
318
319/// The HTTP header field `accept-post`, used to specify which media types are accepted for POST requests.
320pub const ACCEPT_POST: &str = "accept-post";
321
322/// The HTTP header field `access-control-allow-credentials`, used to indicate whether credentials can be exposed.
323pub const ACCESS_CONTROL_ALLOW_CREDENTIALS: &str = "access-control-allow-credentials";
324
325/// The HTTP header field `nel`, used to define a network error logging policy.
326pub const NEL: &str = "nel";
327
328/// The HTTP header field `report-to`, used to specify endpoints for reporting.
329pub const REPORT_TO: &str = "report-to";
330
331/// The HTTP header field `x-dns-prefetch-control`, used to control DNS prefetching.
332pub const X_DNS_PREFETCH_CONTROL: &str = "x-dns-prefetch-control";
333
334/// The HTTP header field `x-download-options`, used to prevent file downloads from being executed.
335pub const X_DOWNLOAD_OPTIONS: &str = "x-download-options";
336
337/// The HTTP header field `x-permitted-cross-domain-policies`, used to control cross-domain policy files.
338pub const X_PERMITTED_CROSS_DOMAIN_POLICIES: &str = "x-permitted-cross-domain-policies";
339
340/// The HTTP header field `x-robots-tag`, used to control how search engines index content.
341pub const X_ROBOTS_TAG: &str = "x-robots-tag";
342
343/// The HTTP header field `x-ua-compatible`, used to specify which version of Internet Explorer the page should be rendered as.
344pub const X_UA_COMPATIBLE: &str = "x-ua-compatible";