http_constant/header_value/
const.rs

1/// Basic authentication scheme.
2pub const BASIC: &str = "Basic";
3
4/// Indicates no-cache.
5pub const NO_CACHE: &str = "no-cache";
6
7/// Indicates keep-alive connection.
8pub const KEEP_ALIVE: &str = "keep-alive";
9
10/// Indicates chunked transfer encoding.
11pub const CHUNKED: &str = "chunked";
12
13/// Deny page from being framed.
14pub const DENY: &str = "DENY";
15
16/// Prevent MIME sniffing.
17pub const NOSNIFF: &str = "nosniff";
18
19/// Indicates an XMLHttpRequest (AJAX).
20pub const XMLHTTPREQUEST: &str = "XMLHttpRequest";
21
22/// Gzip compression.
23pub const GZIP: &str = "gzip";
24
25/// Deflate compression.
26pub const DEFLATE: &str = "deflate";
27
28/// Brotli compression.
29pub const BROTLI: &str = "br";
30
31/// No encoding (identity).
32pub const IDENTITY: &str = "identity";
33
34/// Accept any content type.
35pub const ACCEPT_ANY: &str = "*/*";
36
37/// Wildcard any.
38pub const WILDCARD_ANY: &str = "*";
39
40/// Prefer English language.
41pub const ENGLISH: &str = "en";
42
43/// Bearer token authentication.
44pub const BEARER: &str = "Bearer";
45
46/// Private caching.
47pub const PRIVATE: &str = "private";
48
49/// Public caching.
50pub const PUBLIC: &str = "public";
51
52/// Close the connection.
53pub const CLOSE: &str = "close";
54
55/// Allow framing only by same origin.
56pub const SAMEORIGIN: &str = "SAMEORIGIN";
57
58/// Charset
59pub const CHARSET: &str = "charset";
60
61/// Charset Equal
62pub const CHARSET_EQUAL: &str = "charset=";
63
64/// UTF-8
65pub const UTF8: &str = "utf-8";
66
67/// ASCII
68pub const ASCII: &str = "us-ascii";
69
70/// ISO-8859-1 (Latin-1)
71pub const ISO_8859_1: &str = "iso-8859-1";
72
73/// ISO-8859-2 (Latin-2, Central European)
74pub const ISO_8859_2: &str = "iso-8859-2";
75
76/// ISO-8859-3 (Latin-3, South European)
77pub const ISO_8859_3: &str = "iso-8859-3";
78
79/// ISO-8859-4 (Latin-4, North European)
80pub const ISO_8859_4: &str = "iso-8859-4";
81
82/// ISO-8859-5 (Cyrillic)
83pub const ISO_8859_5: &str = "iso-8859-5";
84
85/// ISO-8859-6 (Arabic)
86pub const ISO_8859_6: &str = "iso-8859-6";
87
88/// ISO-8859-7 (Greek)
89pub const ISO_8859_7: &str = "iso-8859-7";
90
91/// ISO-8859-8 (Hebrew)
92pub const ISO_8859_8: &str = "iso-8859-8";
93
94/// ISO-8859-9 (Latin-5, Turkish)
95pub const ISO_8859_9: &str = "iso-8859-9";
96
97/// ISO-8859-10 (Latin-6, Nordic)
98pub const ISO_8859_10: &str = "iso-8859-10";
99
100/// ISO-8859-11 (Thai)
101pub const ISO_8859_11: &str = "iso-8859-11";
102
103/// ISO-8859-13 (Latin-7, Baltic Rim)
104pub const ISO_8859_13: &str = "iso-8859-13";
105
106/// ISO-8859-14 (Latin-8, Celtic)
107pub const ISO_8859_14: &str = "iso-8859-14";
108
109/// ISO-8859-15 (Latin-9, Western European with € symbol)
110pub const ISO_8859_15: &str = "iso-8859-15";
111
112/// ISO-8859-16 (Latin-10, South-Eastern European)
113pub const ISO_8859_16: &str = "iso-8859-16";
114
115/// Windows-1250 (Central European)
116pub const WINDOWS_1250: &str = "windows-1250";
117
118/// Windows-1251 (Cyrillic)
119pub const WINDOWS_1251: &str = "windows-1251";
120
121/// Windows-1252 (Western European)
122pub const WINDOWS_1252: &str = "windows-1252";
123
124/// Windows-1253 (Greek)
125pub const WINDOWS_1253: &str = "windows-1253";
126
127/// Windows-1254 (Turkish)
128pub const WINDOWS_1254: &str = "windows-1254";
129
130/// Windows-1255 (Hebrew)
131pub const WINDOWS_1255: &str = "windows-1255";
132
133/// Windows-1256 (Arabic)
134pub const WINDOWS_1256: &str = "windows-1256";
135
136/// Windows-1257 (Baltic)
137pub const WINDOWS_1257: &str = "windows-1257";
138
139/// Windows-1258 (Vietnamese)
140pub const WINDOWS_1258: &str = "windows-1258";
141
142/// KOI8-R (Russian)
143pub const KOI8_R: &str = "koi8-r";
144
145/// KOI8-U (Ukrainian)
146pub const KOI8_U: &str = "koi8-u";
147
148/// Shift JIS (Japanese)
149pub const SHIFT_JIS: &str = "shift_jis";
150
151/// EUC-JP (Japanese)
152pub const EUC_JP: &str = "euc-jp";
153
154/// EUC-KR (Korean)
155pub const EUC_KR: &str = "euc-kr";
156
157/// GB2312 (Simplified Chinese)
158pub const GB2312: &str = "gb2312";
159
160/// Big5 (Traditional Chinese)
161pub const BIG5: &str = "big5";
162
163/// UTF-16 (16-bit Unicode)
164pub const UTF16: &str = "utf-16";
165
166/// UTF-16LE (UTF-16 Little Endian)
167pub const UTF16LE: &str = "utf-16le";
168
169/// UTF-16BE (UTF-16 Big Endian)
170pub const UTF16BE: &str = "utf-16be";
171
172/// UTF-32 (32-bit Unicode)
173pub const UTF32: &str = "utf-32";
174
175/// UTF-32LE (UTF-32 Little Endian)
176pub const UTF32LE: &str = "utf-32le";
177
178/// UTF-32BE (UTF-32 Big Endian)
179pub const UTF32BE: &str = "utf-32be";
180
181/// Charset utf8
182pub const CHARSET_UTF_8: &str = "charset=utf-8";
183
184/// Charset iso-8859-1
185pub const CHARSET_ISO_8859_1: &str = "charset=iso-8859-1";
186
187/// Charset windows-1252
188pub const CHARSET_WINDOWS_1252: &str = "charset=windows-1252";
189
190/// Charset shift_jis
191pub const CHARSET_SHIFT_JIS: &str = "charset=shift_jis";
192
193/// Charset gb2312
194pub const CHARSET_GB2312: &str = "charset=gb2312";
195
196/// Charset big5
197pub const CHARSET_BIG5: &str = "charset=big5";
198
199/// Charset utf-16
200pub const CHARSET_UTF_16: &str = "charset=utf-16";
201
202/// Charset utf-32
203pub const CHARSET_UTF_32: &str = "charset=utf-32";
204
205/// Charset macintosh
206pub const CHARSET_MACINTOSH: &str = "charset=macintosh";
207
208/// Charset euc-kr
209pub const CHARSET_EUC_KR: &str = "charset=euc-kr";
210
211/// Charset us-ascii
212pub const CHARSET_ASCII: &str = "charset=us-ascii";
213
214/// Charset iso-8859-2
215pub const CHARSET_ISO_8859_2: &str = "charset=iso-8859-2";
216
217/// Charset iso-8859-3
218pub const CHARSET_ISO_8859_3: &str = "charset=iso-8859-3";
219
220/// Charset iso-8859-4
221pub const CHARSET_ISO_8859_4: &str = "charset=iso-8859-4";
222
223/// Charset iso-8859-5
224pub const CHARSET_ISO_8859_5: &str = "charset=iso-8859-5";
225
226/// Charset iso-8859-6
227pub const CHARSET_ISO_8859_6: &str = "charset=iso-8859-6";
228
229/// Charset iso-8859-7
230pub const CHARSET_ISO_8859_7: &str = "charset=iso-8859-7";
231
232/// Charset iso-8859-8
233pub const CHARSET_ISO_8859_8: &str = "charset=iso-8859-8";
234
235/// Charset iso-8859-9
236pub const CHARSET_ISO_8859_9: &str = "charset=iso-8859-9";
237
238/// Charset iso-8859-10
239pub const CHARSET_ISO_8859_10: &str = "charset=iso-8859-10";
240
241/// Charset iso-8859-11
242pub const CHARSET_ISO_8859_11: &str = "charset=iso-8859-11";
243
244/// Charset iso-8859-13
245pub const CHARSET_ISO_8859_13: &str = "charset=iso-8859-13";
246
247/// Charset iso-8859-14
248pub const CHARSET_ISO_8859_14: &str = "charset=iso-8859-14";
249
250/// Charset iso-8859-15
251pub const CHARSET_ISO_8859_15: &str = "charset=iso-8859-15";
252
253/// Charset iso-8859-16
254pub const CHARSET_ISO_8859_16: &str = "charset=iso-8859-16";
255
256/// Charset windows-1250
257pub const CHARSET_WINDOWS_1250: &str = "charset=windows-1250";
258
259/// Charset windows-1251
260pub const CHARSET_WINDOWS_1251: &str = "charset=windows-1251";
261
262/// Charset windows-1253
263pub const CHARSET_WINDOWS_1253: &str = "charset=windows-1253";
264
265/// Charset windows-1254
266pub const CHARSET_WINDOWS_1254: &str = "charset=windows-1254";
267
268/// Charset windows-1255
269pub const CHARSET_WINDOWS_1255: &str = "charset=windows-1255";
270
271/// Charset windows-1256
272pub const CHARSET_WINDOWS_1256: &str = "charset=windows-1256";
273
274/// Charset windows-1257
275pub const CHARSET_WINDOWS_1257: &str = "charset=windows-1257";
276
277/// Charset windows-1258
278pub const CHARSET_WINDOWS_1258: &str = "charset=windows-1258";
279
280/// Charset koi8-r
281pub const CHARSET_KOI8_R: &str = "charset=koi8-r";
282
283/// Charset koi8-u
284pub const CHARSET_KOI8_U: &str = "charset=koi8-u";
285
286/// Charset euc-jp
287pub const CHARSET_EUC_JP: &str = "charset=euc-jp";
288
289/// Charset utf-16le
290pub const CHARSET_UTF_16LE: &str = "charset=utf-16le";
291
292/// Charset utf-16be
293pub const CHARSET_UTF_16BE: &str = "charset=utf-16be";
294
295/// Charset utf-32le
296pub const CHARSET_UTF_32LE: &str = "charset=utf-32le";
297
298/// Charset utf-32be
299pub const CHARSET_UTF_32BE: &str = "charset=utf-32be";
300
301/// H2C
302pub const H2C_LOWERCASE: &str = "h2c";
303
304/// H2C
305pub const H2C_UPPERCASE: &str = "H2C";
306
307// TLS
308pub const TLS_LOWERCASE: &str = "tls";
309
310/// TLS
311pub const TLS_UPPERCASE: &str = "TLS";
312
313/// TLS/1.0
314pub const TLS_1_0: &str = "TLS/1.0";
315
316/// TLS/1.1
317pub const TLS_1_1: &str = "TLS/1.1";
318
319/// TLS/1.2
320pub const TLS_1_2: &str = "TLS/1.2";
321
322/// TLS/1.3
323pub const TLS_1_3: &str = "TLS/1.3";
324
325/// Bytes
326pub const BYTES: &str = "bytes";
327
328/// Cache control directive: max-age
329pub const MAX_AGE: &str = "max-age";
330
331/// Cache control directive: must-revalidate
332pub const MUST_REVALIDATE: &str = "must-revalidate";
333
334/// Cache control directive: no-store
335pub const NO_STORE: &str = "no-store";
336
337/// Cache control directive: no-transform
338pub const NO_TRANSFORM: &str = "no-transform";
339
340/// Cache control directive: proxy-revalidate
341pub const PROXY_REVALIDATE: &str = "proxy-revalidate";
342
343/// Cache control directive: s-maxage
344pub const S_MAXAGE: &str = "s-maxage";
345
346/// Cache control directive: immutable
347pub const IMMUTABLE: &str = "immutable";
348
349/// Cache control directive: stale-while-revalidate
350pub const STALE_WHILE_REVALIDATE: &str = "stale-while-revalidate";
351
352/// Cache control directive: stale-if-error
353pub const STALE_IF_ERROR: &str = "stale-if-error";
354
355/// Content disposition: inline
356pub const INLINE: &str = "inline";
357
358/// Content disposition: attachment
359pub const ATTACHMENT: &str = "attachment";
360
361/// Content disposition: form-data
362pub const FORM_DATA: &str = "form-data";
363
364/// X-Frame-Options: ALLOWALL
365pub const ALLOWALL: &str = "ALLOWALL";
366
367/// X-Content-Type-Options: nosniff (already exists as NOSNIFF)
368/// Referrer Policy: no-referrer
369pub const NO_REFERRER: &str = "no-referrer";
370
371/// Referrer Policy: no-referrer-when-downgrade
372pub const NO_REFERRER_WHEN_DOWNGRADE: &str = "no-referrer-when-downgrade";
373
374/// Referrer Policy: origin
375pub const ORIGIN_ONLY: &str = "origin";
376
377/// Referrer Policy: origin-when-cross-origin
378pub const ORIGIN_WHEN_CROSS_ORIGIN: &str = "origin-when-cross-origin";
379
380/// Referrer Policy: same-origin
381pub const SAME_ORIGIN: &str = "same-origin";
382
383/// Referrer Policy: strict-origin
384pub const STRICT_ORIGIN: &str = "strict-origin";
385
386/// Referrer Policy: strict-origin-when-cross-origin
387pub const STRICT_ORIGIN_WHEN_CROSS_ORIGIN: &str = "strict-origin-when-cross-origin";
388
389/// Referrer Policy: unsafe-url
390pub const UNSAFE_URL: &str = "unsafe-url";
391
392/// Cross-Origin-Embedder-Policy: require-corp
393pub const REQUIRE_CORP: &str = "require-corp";
394
395/// Cross-Origin-Embedder-Policy: credentialless
396pub const CREDENTIALLESS: &str = "credentialless";
397
398/// Cross-Origin-Opener-Policy: same-origin
399pub const SAME_ORIGIN_COOP: &str = "same-origin";
400
401/// Cross-Origin-Opener-Policy: same-origin-allow-popups
402pub const SAME_ORIGIN_ALLOW_POPUPS: &str = "same-origin-allow-popups";
403
404/// Cross-Origin-Opener-Policy: unsafe-none
405pub const UNSAFE_NONE: &str = "unsafe-none";
406
407/// Cross-Origin-Resource-Policy: same-site
408pub const SAME_SITE: &str = "same-site";
409
410/// Cross-Origin-Resource-Policy: cross-origin
411pub const CROSS_ORIGIN: &str = "cross-origin";
412
413/// X-XSS-Protection: 1; mode=block
414pub const XSS_PROTECTION_BLOCK: &str = "1; mode=block";
415
416/// X-XSS-Protection: 0
417pub const XSS_PROTECTION_DISABLED: &str = "0";
418
419/// X-DNS-Prefetch-Control: on
420pub const DNS_PREFETCH_ON: &str = "on";
421
422/// X-DNS-Prefetch-Control: off
423pub const DNS_PREFETCH_OFF: &str = "off";
424
425/// X-Download-Options: noopen
426pub const NOOPEN: &str = "noopen";
427
428/// X-Permitted-Cross-Domain-Policies: none
429pub const NONE: &str = "none";
430
431/// X-Permitted-Cross-Domain-Policies: master-only
432pub const MASTER_ONLY: &str = "master-only";
433
434/// X-Permitted-Cross-Domain-Policies: by-content-type
435pub const BY_CONTENT_TYPE: &str = "by-content-type";
436
437/// X-Permitted-Cross-Domain-Policies: all
438pub const ALL: &str = "all";
439
440/// X-Robots-Tag: noindex
441pub const NOINDEX: &str = "noindex";
442
443/// X-Robots-Tag: nofollow
444pub const NOFOLLOW: &str = "nofollow";
445
446/// X-Robots-Tag: noarchive
447pub const NOARCHIVE: &str = "noarchive";
448
449/// X-Robots-Tag: nosnippet
450pub const NOSNIPPET: &str = "nosnippet";
451
452/// X-Robots-Tag: noimageindex
453pub const NOIMAGEINDEX: &str = "noimageindex";
454
455/// X-UA-Compatible: IE=edge
456pub const IE_EDGE: &str = "IE=edge";
457
458/// Expect: 100-continue
459pub const CONTINUE_EXPECT: &str = "100-continue";
460
461/// Transfer-Encoding: compress
462pub const COMPRESS: &str = "compress";
463
464/// Accept-Ranges: none
465pub const NONE_RANGES: &str = "none";
466
467/// Vary: accept-encoding
468pub const VARY_ACCEPT_ENCODING: &str = "accept-encoding";
469
470/// Vary: user-agent
471pub const VARY_USER_AGENT: &str = "user-agent";
472
473/// Vary: origin
474pub const VARY_ORIGIN: &str = "origin";
475
476/// domain
477pub const COOKIE_DOMAIN: &str = "Domain";
478
479/// domain lowercase
480pub const COOKIE_DOMAIN_LOWERCASE: &str = "domain";
481
482/// path
483pub const COOKIE_PATH: &str = "Path";
484
485/// path lowercase
486pub const COOKIE_PATH_LOWERCASE: &str = "path";
487
488/// secure
489pub const COOKIE_SECURE: &str = "Secure";
490
491/// secure lowercase
492pub const COOKIE_SECURE_LOWERCASE: &str = "secure";
493
494/// HttpOnly
495pub const COOKIE_HTTP_ONLY: &str = "HttpOnly";
496
497/// httponly lowercase
498pub const COOKIE_HTTP_ONLY_LOWERCASE: &str = "httponly";
499
500/// SameSite
501pub const COOKIE_SAME_SITE: &str = "SameSite";
502
503/// samesite lowercase
504pub const COOKIE_SAME_SITE_LOWERCASE: &str = "samesite";
505
506/// max-age
507pub const COOKIE_MAX_AGE: &str = "Max-Age";
508
509/// max-age lowercase
510pub const COOKIE_MAX_AGE_LOWERCASE: &str = "max-age";
511
512/// expires
513pub const COOKIE_EXPIRES: &str = "Expires";
514
515/// expires lowercase
516pub const COOKIE_EXPIRES_LOWERCASE: &str = "expires";
517
518/// priority
519pub const COOKIE_PRIORITY: &str = "Priority";
520
521/// priority lowercase
522pub const COOKIE_PRIORITY_LOWERCASE: &str = "priority";
523
524/// preload
525pub const COOKIE_PRELOAD: &str = "Preload";
526
527/// preload lowercase
528pub const COOKIE_PRELOAD_LOWERCASE: &str = "preload";
529
530/// SameSite value: Strict
531pub const COOKIE_SAME_SITE_STRICT: &str = "Strict";
532
533/// SameSite value: Lax
534pub const COOKIE_SAME_SITE_LAX: &str = "Lax";
535
536/// SameSite value: None
537pub const COOKIE_SAME_SITE_NONE: &str = "None";
538
539/// SameSite value: strict lowercase
540pub const COOKIE_SAME_SITE_STRICT_LOWERCASE: &str = "strict";
541
542/// SameSite value: lax lowercase
543pub const COOKIE_SAME_SITE_LAX_LOWERCASE: &str = "lax";
544
545/// SameSite value: none lowercase
546pub const COOKIE_SAME_SITE_NONE_LOWERCASE: &str = "none";
547
548/// Priority value: Low
549pub const COOKIE_PRIORITY_LOW: &str = "Low";
550
551/// Priority value: Medium
552pub const COOKIE_PRIORITY_MEDIUM: &str = "Medium";
553
554/// Priority value: High
555pub const COOKIE_PRIORITY_HIGH: &str = "High";
556
557/// Priority value: low lowercase
558pub const COOKIE_PRIORITY_LOW_LOWERCASE: &str = "low";
559
560/// Priority value: medium lowercase
561pub const COOKIE_PRIORITY_MEDIUM_LOWERCASE: &str = "medium";
562
563/// Priority value: high lowercase
564pub const COOKIE_PRIORITY_HIGH_LOWERCASE: &str = "high";
565
566/// Cookie attribute with value: SameSite=Strict
567pub const COOKIE_SAME_SITE_STRICT_ATTR: &str = "SameSite=Strict";
568
569/// Cookie attribute with value: SameSite=Lax
570pub const COOKIE_SAME_SITE_LAX_ATTR: &str = "SameSite=Lax";
571
572/// Cookie attribute with value: SameSite=None
573pub const COOKIE_SAME_SITE_NONE_ATTR: &str = "SameSite=None";
574
575/// Cookie attribute with value: samesite=strict lowercase
576pub const COOKIE_SAME_SITE_STRICT_ATTR_LOWERCASE: &str = "samesite=strict";
577
578/// Cookie attribute with value: samesite=lax lowercase
579pub const COOKIE_SAME_SITE_LAX_ATTR_LOWERCASE: &str = "samesite=lax";
580
581/// Cookie attribute with value: samesite=none lowercase
582pub const COOKIE_SAME_SITE_NONE_ATTR_LOWERCASE: &str = "samesite=none";
583
584/// Cookie attribute with value: Priority=Low
585pub const COOKIE_PRIORITY_LOW_ATTR: &str = "Priority=Low";
586
587/// Cookie attribute with value: Priority=Medium
588pub const COOKIE_PRIORITY_MEDIUM_ATTR: &str = "Priority=Medium";
589
590/// Cookie attribute with value: Priority=High
591pub const COOKIE_PRIORITY_HIGH_ATTR: &str = "Priority=High";
592
593/// Cookie attribute with value: priority=low lowercase
594pub const COOKIE_PRIORITY_LOW_ATTR_LOWERCASE: &str = "priority=low";
595
596/// Cookie attribute with value: priority=medium lowercase
597pub const COOKIE_PRIORITY_MEDIUM_ATTR_LOWERCASE: &str = "priority=medium";
598
599/// Cookie attribute with value: priority=high lowercase
600pub const COOKIE_PRIORITY_HIGH_ATTR_LOWERCASE: &str = "priority=high";
601
602/// Cookie separator
603pub const COOKIE_SEPARATOR: &str = "; ";
604
605/// Cookie name-value separator
606pub const COOKIE_NAME_VALUE_SEPARATOR: &str = "=";
607
608/// Cookie attribute prefix: Domain=
609pub const COOKIE_DOMAIN_PREFIX: &str = "Domain=";
610
611/// Cookie attribute prefix: domain= lowercase
612pub const COOKIE_DOMAIN_PREFIX_LOWERCASE: &str = "domain=";
613
614/// Cookie attribute prefix: Path=
615pub const COOKIE_PATH_PREFIX: &str = "Path=";
616
617/// Cookie attribute prefix: path= lowercase
618pub const COOKIE_PATH_PREFIX_LOWERCASE: &str = "path=";
619
620/// Cookie attribute prefix: Max-Age=
621pub const COOKIE_MAX_AGE_PREFIX: &str = "Max-Age=";
622
623/// Cookie attribute prefix: max-age= lowercase
624pub const COOKIE_MAX_AGE_PREFIX_LOWERCASE: &str = "max-age=";
625
626/// Cookie attribute prefix: Expires=
627pub const COOKIE_EXPIRES_PREFIX: &str = "Expires=";
628
629/// Cookie attribute prefix: expires= lowercase
630pub const COOKIE_EXPIRES_PREFIX_LOWERCASE: &str = "expires=";
631
632/// Cookie attribute prefix: SameSite=
633pub const COOKIE_SAME_SITE_PREFIX: &str = "SameSite=";
634
635/// Cookie attribute prefix: samesite= lowercase
636pub const COOKIE_SAME_SITE_PREFIX_LOWERCASE: &str = "samesite=";
637
638/// Cookie attribute prefix: Priority=
639pub const COOKIE_PRIORITY_PREFIX: &str = "Priority=";
640
641/// Cookie attribute prefix: priority= lowercase
642pub const COOKIE_PRIORITY_PREFIX_LOWERCASE: &str = "priority=";
643
644/// Cookie common max-age values: 0 (delete immediately)
645pub const COOKIE_MAX_AGE_DELETE: &str = "0";
646
647/// Cookie common max-age values: session (no max-age)
648pub const COOKIE_MAX_AGE_SESSION: &str = "";
649
650/// Cookie common max-age values: 1 hour
651pub const COOKIE_MAX_AGE_1_HOUR: &str = "3600";
652
653/// Cookie common max-age values: 1 day
654pub const COOKIE_MAX_AGE_1_DAY: &str = "86400";
655
656/// Cookie common max-age values: 1 week
657pub const COOKIE_MAX_AGE_1_WEEK: &str = "604800";
658
659/// Cookie common max-age values: 1 month (30 days)
660pub const COOKIE_MAX_AGE_1_MONTH: &str = "2592000";
661
662/// Cookie common max-age values: 1 year
663pub const COOKIE_MAX_AGE_1_YEAR: &str = "31536000";
664
665/// Cookie common path values: root path
666pub const COOKIE_PATH_ROOT: &str = "/";
667
668/// Cookie common domain values: localhost
669pub const COOKIE_DOMAIN_LOCALHOST: &str = "localhost";
670
671/// Cookie __Secure- prefix
672pub const COOKIE_SECURE_PREFIX: &str = "__Secure-";
673
674/// Cookie __Host- prefix
675pub const COOKIE_HOST_PREFIX: &str = "__Host-";
676
677/// Cookie complete attribute strings with common values
678/// Complete secure cookie attributes
679pub const COOKIE_SECURE_HTTP_ONLY: &str = "Secure; HttpOnly";
680
681/// Complete secure cookie attributes lowercase
682pub const COOKIE_SECURE_HTTP_ONLY_LOWERCASE: &str = "secure; httponly";
683
684/// Complete secure cookie with SameSite=Strict
685pub const COOKIE_SECURE_HTTP_ONLY_SAME_SITE_STRICT: &str = "Secure; HttpOnly; SameSite=Strict";
686
687/// Complete secure cookie with SameSite=Strict lowercase
688pub const COOKIE_SECURE_HTTP_ONLY_SAME_SITE_STRICT_LOWERCASE: &str =
689    "secure; httponly; samesite=strict";
690
691/// Complete secure cookie with SameSite=Lax
692pub const COOKIE_SECURE_HTTP_ONLY_SAME_SITE_LAX: &str = "Secure; HttpOnly; SameSite=Lax";
693
694/// Complete secure cookie with SameSite=Lax lowercase
695pub const COOKIE_SECURE_HTTP_ONLY_SAME_SITE_LAX_LOWERCASE: &str = "secure; httponly; samesite=lax";
696
697/// Complete secure cookie with SameSite=None
698pub const COOKIE_SECURE_HTTP_ONLY_SAME_SITE_NONE: &str = "Secure; HttpOnly; SameSite=None";
699
700/// Complete secure cookie with SameSite=None lowercase
701pub const COOKIE_SECURE_HTTP_ONLY_SAME_SITE_NONE_LOWERCASE: &str =
702    "secure; httponly; samesite=none";
703
704/// Cookie with root path
705pub const COOKIE_PATH_ROOT_ATTR: &str = "Path=/";
706
707/// Cookie with root path lowercase
708pub const COOKIE_PATH_ROOT_ATTR_LOWERCASE: &str = "path=/";
709
710/// Cookie deletion attributes (Max-Age=0; Expires=Thu, 01 Jan 1970 00:00:00 GMT)
711pub const COOKIE_DELETE_ATTRS: &str = "Max-Age=0; Expires=Thu, 01 Jan 1970 00:00:00 GMT";
712
713/// Cookie deletion attributes lowercase
714pub const COOKIE_DELETE_ATTRS_LOWERCASE: &str = "max-age=0; expires=Thu, 01 Jan 1970 00:00:00 GMT";
715
716/// Common expires date for deletion
717pub const COOKIE_EXPIRES_EPOCH: &str = "Thu, 01 Jan 1970 00:00:00 GMT";
718
719/// Cookie attribute: Expires
720pub const COOKIE_EXPIRES_ATTRIBUTE: &str = "; Expires=";
721
722/// Cookie attribute: expires lowercase
723pub const COOKIE_EXPIRES_ATTRIBUTE_LOWERCASE: &str = "; expires=";
724
725/// Cookie attribute: Max-Age
726pub const COOKIE_MAX_AGE_ATTRIBUTE: &str = "; Max-Age=";
727
728/// Cookie attribute: max-age lowercase
729pub const COOKIE_MAX_AGE_ATTRIBUTE_LOWERCASE: &str = "; max-age=";
730
731/// Cookie attribute: Domain
732pub const COOKIE_DOMAIN_ATTRIBUTE: &str = "; Domain=";
733
734/// Cookie attribute: domain lowercase
735pub const COOKIE_DOMAIN_ATTRIBUTE_LOWERCASE: &str = "; domain=";
736
737/// Cookie attribute: Path
738pub const COOKIE_PATH_ATTRIBUTE: &str = "; Path=";
739
740/// Cookie attribute: path lowercase
741pub const COOKIE_PATH_ATTRIBUTE_LOWERCASE: &str = "; path=";
742
743/// Cookie attribute: Secure
744pub const COOKIE_SECURE_ATTRIBUTE: &str = "; Secure";
745
746/// Cookie attribute: secure lowercase
747pub const COOKIE_SECURE_ATTRIBUTE_LOWERCASE: &str = "; secure";
748
749/// Cookie attribute: HttpOnly
750pub const COOKIE_HTTP_ONLY_ATTRIBUTE: &str = "; HttpOnly";
751
752/// Cookie attribute: httponly lowercase
753pub const COOKIE_HTTP_ONLY_ATTRIBUTE_LOWERCASE: &str = "; httponly";
754
755/// Cookie attribute: SameSite
756pub const COOKIE_SAME_SITE_ATTRIBUTE: &str = "; SameSite=";
757
758/// Cookie attribute: samesite lowercase
759pub const COOKIE_SAME_SITE_ATTRIBUTE_LOWERCASE: &str = "; samesite=";