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
369/// Referrer Policy: no-referrer
370pub const NO_REFERRER: &str = "no-referrer";
371
372/// Referrer Policy: no-referrer-when-downgrade
373pub const NO_REFERRER_WHEN_DOWNGRADE: &str = "no-referrer-when-downgrade";
374
375/// Referrer Policy: origin
376pub const ORIGIN_ONLY: &str = "origin";
377
378/// Referrer Policy: origin-when-cross-origin
379pub const ORIGIN_WHEN_CROSS_ORIGIN: &str = "origin-when-cross-origin";
380
381/// Referrer Policy: same-origin
382pub const SAME_ORIGIN: &str = "same-origin";
383
384/// Referrer Policy: strict-origin
385pub const STRICT_ORIGIN: &str = "strict-origin";
386
387/// Referrer Policy: strict-origin-when-cross-origin
388pub const STRICT_ORIGIN_WHEN_CROSS_ORIGIN: &str = "strict-origin-when-cross-origin";
389
390/// Referrer Policy: unsafe-url
391pub const UNSAFE_URL: &str = "unsafe-url";
392
393/// Cross-Origin-Embedder-Policy: require-corp
394pub const REQUIRE_CORP: &str = "require-corp";
395
396/// Cross-Origin-Embedder-Policy: credentialless
397pub const CREDENTIALLESS: &str = "credentialless";
398
399/// Cross-Origin-Opener-Policy: same-origin
400pub const SAME_ORIGIN_COOP: &str = "same-origin";
401
402/// Cross-Origin-Opener-Policy: same-origin-allow-popups
403pub const SAME_ORIGIN_ALLOW_POPUPS: &str = "same-origin-allow-popups";
404
405/// Cross-Origin-Opener-Policy: unsafe-none
406pub const UNSAFE_NONE: &str = "unsafe-none";
407
408/// Cross-Origin-Resource-Policy: same-site
409pub const SAME_SITE: &str = "same-site";
410
411/// Cross-Origin-Resource-Policy: cross-origin
412pub const CROSS_ORIGIN: &str = "cross-origin";
413
414/// X-XSS-Protection: 1; mode=block
415pub const XSS_PROTECTION_BLOCK: &str = "1; mode=block";
416
417/// X-XSS-Protection: 0
418pub const XSS_PROTECTION_DISABLED: &str = "0";
419
420/// X-DNS-Prefetch-Control: on
421pub const DNS_PREFETCH_ON: &str = "on";
422
423/// X-DNS-Prefetch-Control: off
424pub const DNS_PREFETCH_OFF: &str = "off";
425
426/// X-Download-Options: noopen
427pub const NOOPEN: &str = "noopen";
428
429/// X-Permitted-Cross-Domain-Policies: none
430pub const NONE: &str = "none";
431
432/// X-Permitted-Cross-Domain-Policies: master-only
433pub const MASTER_ONLY: &str = "master-only";
434
435/// X-Permitted-Cross-Domain-Policies: by-content-type
436pub const BY_CONTENT_TYPE: &str = "by-content-type";
437
438/// X-Permitted-Cross-Domain-Policies: all
439pub const ALL: &str = "all";
440
441/// X-Robots-Tag: noindex
442pub const NOINDEX: &str = "noindex";
443
444/// X-Robots-Tag: nofollow
445pub const NOFOLLOW: &str = "nofollow";
446
447/// X-Robots-Tag: noarchive
448pub const NOARCHIVE: &str = "noarchive";
449
450/// X-Robots-Tag: nosnippet
451pub const NOSNIPPET: &str = "nosnippet";
452
453/// X-Robots-Tag: noimageindex
454pub const NOIMAGEINDEX: &str = "noimageindex";
455
456/// X-UA-Compatible: IE=edge
457pub const IE_EDGE: &str = "IE=edge";
458
459/// Expect: 100-continue
460pub const CONTINUE_EXPECT: &str = "100-continue";
461
462/// Transfer-Encoding: compress
463pub const COMPRESS: &str = "compress";
464
465/// Accept-Ranges: none
466pub const NONE_RANGES: &str = "none";
467
468/// Vary: accept-encoding
469pub const VARY_ACCEPT_ENCODING: &str = "accept-encoding";
470
471/// Vary: user-agent
472pub const VARY_USER_AGENT: &str = "user-agent";
473
474/// Vary: origin
475pub const VARY_ORIGIN: &str = "origin";
476
477/// domain
478pub const COOKIE_DOMAIN: &str = "Domain";
479
480/// domain lowercase
481pub const COOKIE_DOMAIN_LOWERCASE: &str = "domain";
482
483/// path
484pub const COOKIE_PATH: &str = "Path";
485
486/// path lowercase
487pub const COOKIE_PATH_LOWERCASE: &str = "path";
488
489/// secure
490pub const COOKIE_SECURE: &str = "Secure";
491
492/// secure lowercase
493pub const COOKIE_SECURE_LOWERCASE: &str = "secure";
494
495/// HttpOnly
496pub const COOKIE_HTTP_ONLY: &str = "HttpOnly";
497
498/// httponly lowercase
499pub const COOKIE_HTTP_ONLY_LOWERCASE: &str = "httponly";
500
501/// SameSite
502pub const COOKIE_SAME_SITE: &str = "SameSite";
503
504/// samesite lowercase
505pub const COOKIE_SAME_SITE_LOWERCASE: &str = "samesite";
506
507/// max-age
508pub const COOKIE_MAX_AGE: &str = "Max-Age";
509
510/// max-age lowercase
511pub const COOKIE_MAX_AGE_LOWERCASE: &str = "max-age";
512
513/// expires
514pub const COOKIE_EXPIRES: &str = "Expires";
515
516/// expires lowercase
517pub const COOKIE_EXPIRES_LOWERCASE: &str = "expires";
518
519/// priority
520pub const COOKIE_PRIORITY: &str = "Priority";
521
522/// priority lowercase
523pub const COOKIE_PRIORITY_LOWERCASE: &str = "priority";
524
525/// preload
526pub const COOKIE_PRELOAD: &str = "Preload";
527
528/// preload lowercase
529pub const COOKIE_PRELOAD_LOWERCASE: &str = "preload";
530
531/// SameSite value: Strict
532pub const COOKIE_SAME_SITE_STRICT: &str = "Strict";
533
534/// SameSite value: Lax
535pub const COOKIE_SAME_SITE_LAX: &str = "Lax";
536
537/// SameSite value: None
538pub const COOKIE_SAME_SITE_NONE: &str = "None";
539
540/// SameSite value: strict lowercase
541pub const COOKIE_SAME_SITE_STRICT_LOWERCASE: &str = "strict";
542
543/// SameSite value: lax lowercase
544pub const COOKIE_SAME_SITE_LAX_LOWERCASE: &str = "lax";
545
546/// SameSite value: none lowercase
547pub const COOKIE_SAME_SITE_NONE_LOWERCASE: &str = "none";
548
549/// Priority value: Low
550pub const COOKIE_PRIORITY_LOW: &str = "Low";
551
552/// Priority value: Medium
553pub const COOKIE_PRIORITY_MEDIUM: &str = "Medium";
554
555/// Priority value: High
556pub const COOKIE_PRIORITY_HIGH: &str = "High";
557
558/// Priority value: low lowercase
559pub const COOKIE_PRIORITY_LOW_LOWERCASE: &str = "low";
560
561/// Priority value: medium lowercase
562pub const COOKIE_PRIORITY_MEDIUM_LOWERCASE: &str = "medium";
563
564/// Priority value: high lowercase
565pub const COOKIE_PRIORITY_HIGH_LOWERCASE: &str = "high";
566
567/// Cookie attribute with value: SameSite=Strict
568pub const COOKIE_SAME_SITE_STRICT_ATTR: &str = "SameSite=Strict";
569
570/// Cookie attribute with value: SameSite=Lax
571pub const COOKIE_SAME_SITE_LAX_ATTR: &str = "SameSite=Lax";
572
573/// Cookie attribute with value: SameSite=None
574pub const COOKIE_SAME_SITE_NONE_ATTR: &str = "SameSite=None";
575
576/// Cookie attribute with value: samesite=strict lowercase
577pub const COOKIE_SAME_SITE_STRICT_ATTR_LOWERCASE: &str = "samesite=strict";
578
579/// Cookie attribute with value: samesite=lax lowercase
580pub const COOKIE_SAME_SITE_LAX_ATTR_LOWERCASE: &str = "samesite=lax";
581
582/// Cookie attribute with value: samesite=none lowercase
583pub const COOKIE_SAME_SITE_NONE_ATTR_LOWERCASE: &str = "samesite=none";
584
585/// Cookie attribute with value: Priority=Low
586pub const COOKIE_PRIORITY_LOW_ATTR: &str = "Priority=Low";
587
588/// Cookie attribute with value: Priority=Medium
589pub const COOKIE_PRIORITY_MEDIUM_ATTR: &str = "Priority=Medium";
590
591/// Cookie attribute with value: Priority=High
592pub const COOKIE_PRIORITY_HIGH_ATTR: &str = "Priority=High";
593
594/// Cookie attribute with value: priority=low lowercase
595pub const COOKIE_PRIORITY_LOW_ATTR_LOWERCASE: &str = "priority=low";
596
597/// Cookie attribute with value: priority=medium lowercase
598pub const COOKIE_PRIORITY_MEDIUM_ATTR_LOWERCASE: &str = "priority=medium";
599
600/// Cookie attribute with value: priority=high lowercase
601pub const COOKIE_PRIORITY_HIGH_ATTR_LOWERCASE: &str = "priority=high";
602
603/// Cookie separator
604pub const COOKIE_SEPARATOR: &str = "; ";
605
606/// Cookie name-value separator
607pub const COOKIE_NAME_VALUE_SEPARATOR: &str = "=";
608
609/// Cookie attribute prefix: Domain=
610pub const COOKIE_DOMAIN_PREFIX: &str = "Domain=";
611
612/// Cookie attribute prefix: domain= lowercase
613pub const COOKIE_DOMAIN_PREFIX_LOWERCASE: &str = "domain=";
614
615/// Cookie attribute prefix: Path=
616pub const COOKIE_PATH_PREFIX: &str = "Path=";
617
618/// Cookie attribute prefix: path= lowercase
619pub const COOKIE_PATH_PREFIX_LOWERCASE: &str = "path=";
620
621/// Cookie attribute prefix: Max-Age=
622pub const COOKIE_MAX_AGE_PREFIX: &str = "Max-Age=";
623
624/// Cookie attribute prefix: max-age= lowercase
625pub const COOKIE_MAX_AGE_PREFIX_LOWERCASE: &str = "max-age=";
626
627/// Cookie attribute prefix: Expires=
628pub const COOKIE_EXPIRES_PREFIX: &str = "Expires=";
629
630/// Cookie attribute prefix: expires= lowercase
631pub const COOKIE_EXPIRES_PREFIX_LOWERCASE: &str = "expires=";
632
633/// Cookie attribute prefix: SameSite=
634pub const COOKIE_SAME_SITE_PREFIX: &str = "SameSite=";
635
636/// Cookie attribute prefix: samesite= lowercase
637pub const COOKIE_SAME_SITE_PREFIX_LOWERCASE: &str = "samesite=";
638
639/// Cookie attribute prefix: Priority=
640pub const COOKIE_PRIORITY_PREFIX: &str = "Priority=";
641
642/// Cookie attribute prefix: priority= lowercase
643pub const COOKIE_PRIORITY_PREFIX_LOWERCASE: &str = "priority=";
644
645/// Cookie common max-age values: 0 (delete immediately)
646pub const COOKIE_MAX_AGE_DELETE: &str = "0";
647
648/// Cookie common max-age values: session (no max-age)
649pub const COOKIE_MAX_AGE_SESSION: &str = "";
650
651/// Cookie common max-age values: 1 hour
652pub const COOKIE_MAX_AGE_1_HOUR: &str = "3600";
653
654/// Cookie common max-age values: 1 day
655pub const COOKIE_MAX_AGE_1_DAY: &str = "86400";
656
657/// Cookie common max-age values: 1 week
658pub const COOKIE_MAX_AGE_1_WEEK: &str = "604800";
659
660/// Cookie common max-age values: 1 month (30 days)
661pub const COOKIE_MAX_AGE_1_MONTH: &str = "2592000";
662
663/// Cookie common max-age values: 1 year
664pub const COOKIE_MAX_AGE_1_YEAR: &str = "31536000";
665
666/// Cookie common path values: root path
667pub const COOKIE_PATH_ROOT: &str = "/";
668
669/// Cookie common domain values: localhost
670pub const COOKIE_DOMAIN_LOCALHOST: &str = "localhost";
671
672/// Cookie __Secure- prefix
673pub const COOKIE_SECURE_PREFIX: &str = "__Secure-";
674
675/// Cookie __Host- prefix
676pub const COOKIE_HOST_PREFIX: &str = "__Host-";
677
678/// Cookie complete attribute strings with common values
679/// Complete secure cookie attributes
680pub const COOKIE_SECURE_HTTP_ONLY: &str = "Secure; HttpOnly";
681
682/// Complete secure cookie attributes lowercase
683pub const COOKIE_SECURE_HTTP_ONLY_LOWERCASE: &str = "secure; httponly";
684
685/// Complete secure cookie with SameSite=Strict
686pub const COOKIE_SECURE_HTTP_ONLY_SAME_SITE_STRICT: &str = "Secure; HttpOnly; SameSite=Strict";
687
688/// Complete secure cookie with SameSite=Strict lowercase
689pub const COOKIE_SECURE_HTTP_ONLY_SAME_SITE_STRICT_LOWERCASE: &str =
690    "secure; httponly; samesite=strict";
691
692/// Complete secure cookie with SameSite=Lax
693pub const COOKIE_SECURE_HTTP_ONLY_SAME_SITE_LAX: &str = "Secure; HttpOnly; SameSite=Lax";
694
695/// Complete secure cookie with SameSite=Lax lowercase
696pub const COOKIE_SECURE_HTTP_ONLY_SAME_SITE_LAX_LOWERCASE: &str = "secure; httponly; samesite=lax";
697
698/// Complete secure cookie with SameSite=None
699pub const COOKIE_SECURE_HTTP_ONLY_SAME_SITE_NONE: &str = "Secure; HttpOnly; SameSite=None";
700
701/// Complete secure cookie with SameSite=None lowercase
702pub const COOKIE_SECURE_HTTP_ONLY_SAME_SITE_NONE_LOWERCASE: &str =
703    "secure; httponly; samesite=none";
704
705/// Cookie with root path
706pub const COOKIE_PATH_ROOT_ATTR: &str = "Path=/";
707
708/// Cookie with root path lowercase
709pub const COOKIE_PATH_ROOT_ATTR_LOWERCASE: &str = "path=/";
710
711/// Cookie deletion attributes (Max-Age=0; Expires=Thu, 01 Jan 1970 00:00:00 GMT)
712pub const COOKIE_DELETE_ATTRS: &str = "Max-Age=0; Expires=Thu, 01 Jan 1970 00:00:00 GMT";
713
714/// Cookie deletion attributes lowercase
715pub const COOKIE_DELETE_ATTRS_LOWERCASE: &str = "max-age=0; expires=Thu, 01 Jan 1970 00:00:00 GMT";
716
717/// Common expires date for deletion
718pub const COOKIE_EXPIRES_EPOCH: &str = "Thu, 01 Jan 1970 00:00:00 GMT";
719
720/// Cookie attribute: Expires
721pub const COOKIE_EXPIRES_ATTRIBUTE: &str = "; Expires=";
722
723/// Cookie attribute: expires lowercase
724pub const COOKIE_EXPIRES_ATTRIBUTE_LOWERCASE: &str = "; expires=";
725
726/// Cookie attribute: Max-Age
727pub const COOKIE_MAX_AGE_ATTRIBUTE: &str = "; Max-Age=";
728
729/// Cookie attribute: max-age lowercase
730pub const COOKIE_MAX_AGE_ATTRIBUTE_LOWERCASE: &str = "; max-age=";
731
732/// Cookie attribute: Domain
733pub const COOKIE_DOMAIN_ATTRIBUTE: &str = "; Domain=";
734
735/// Cookie attribute: domain lowercase
736pub const COOKIE_DOMAIN_ATTRIBUTE_LOWERCASE: &str = "; domain=";
737
738/// Cookie attribute: Path
739pub const COOKIE_PATH_ATTRIBUTE: &str = "; Path=";
740
741/// Cookie attribute: path lowercase
742pub const COOKIE_PATH_ATTRIBUTE_LOWERCASE: &str = "; path=";
743
744/// Cookie attribute: Secure
745pub const COOKIE_SECURE_ATTRIBUTE: &str = "; Secure";
746
747/// Cookie attribute: secure lowercase
748pub const COOKIE_SECURE_ATTRIBUTE_LOWERCASE: &str = "; secure";
749
750/// Cookie attribute: HttpOnly
751pub const COOKIE_HTTP_ONLY_ATTRIBUTE: &str = "; HttpOnly";
752
753/// Cookie attribute: httponly lowercase
754pub const COOKIE_HTTP_ONLY_ATTRIBUTE_LOWERCASE: &str = "; httponly";
755
756/// Cookie attribute: SameSite
757pub const COOKIE_SAME_SITE_ATTRIBUTE: &str = "; SameSite=";
758
759/// Cookie attribute: samesite lowercase
760pub const COOKIE_SAME_SITE_ATTRIBUTE_LOWERCASE: &str = "; samesite=";