http_constant/header_value/
const.rs

1/// The default value for the `Accept-Language` header indicating any language is acceptable.
2pub const ACCEPT_LANGUAGE_DEFAULT: &str = "*";
3
4/// The value for the `Authorization` header when using Basic authentication.
5pub const AUTHORIZATION_BASIC: &str = "Basic";
6
7/// The value for the `Cache-Control` header indicating no-cache.
8pub const CACHE_CONTROL_NO_CACHE: &str = "no-cache";
9
10/// The value for the `Connection` header indicating keep-alive.
11pub const CONNECTION_KEEP_ALIVE: &str = "keep-alive";
12
13/// The value for the `Transfer-Encoding` header indicating chunked transfer encoding.
14pub const TRANSFER_ENCODING_CHUNKED: &str = "chunked";
15
16/// The value for the `X-Frame-Options` header to prevent the page from being framed.
17pub const X_FRAME_OPTIONS_DENY: &str = "DENY";
18
19/// The value for the `X-Content-Type-Options` header to prevent MIME sniffing.
20pub const X_CONTENT_TYPE_OPTIONS_NOSNIFF: &str = "nosniff";
21
22/// The value for the `X-Requested-With` header indicating an AJAX request.
23pub const X_REQUESTED_WITH_XMLHTTPREQUEST: &str = "XMLHttpRequest";
24
25/// The value for the `Accept` header indicating that any content type is acceptable.
26pub const ACCEPT_ANY: &str = "*/*";
27
28/// The value for the `Accept-Encoding` header indicating gzip compression.
29pub const ACCEPT_ENCODING_GZIP: &str = "gzip";
30
31/// The value for the `Accept-Encoding` header indicating deflate compression.
32pub const ACCEPT_ENCODING_DEFLATE: &str = "deflate";
33
34/// The value for the `Accept-Encoding` header indicating br (Brotli) compression.
35pub const ACCEPT_ENCODING_BROTLI: &str = "br";
36
37/// The value for the `Accept-Encoding` header indicating no encoding (identity).
38pub const ACCEPT_ENCODING_IDENTITY: &str = "identity";
39
40/// The value for the `Content-Encoding` header indicating gzip compression.
41/// The response body is compressed using the Gzip algorithm.
42pub const CONTENT_ENCODING_GZIP: &str = "gzip";
43
44/// The value for the `Content-Encoding` header indicating deflate compression.
45/// The response body is compressed using the Deflate algorithm.
46pub const CONTENT_ENCODING_DEFLATE: &str = "deflate";
47
48/// The value for the `Content-Encoding` header indicating Brotli compression.
49/// The response body is compressed using the Brotli algorithm, a more modern compression algorithm.
50pub const CONTENT_ENCODING_BROTLI: &str = "br";
51
52/// The value for the `Content-Encoding` header indicating no encoding (identity).
53/// The response body is not compressed or encoded.
54pub const CONTENT_ENCODING_IDENTITY: &str = "identity";
55
56/// The value for the `Accept-Language` header indicating any language is acceptable.
57pub const ACCEPT_LANGUAGE_ANY: &str = "*";
58
59/// Any
60pub const ANY: &str = "*";
61
62/// The value for the `Accept-Language` header indicating English as the preferred language.
63pub const ACCEPT_LANGUAGE_ENGLISH: &str = "en";
64
65/// The value for the `Authorization` header indicating Bearer token authentication.
66pub const AUTHORIZATION_BEARER: &str = "Bearer";
67
68/// The value for the `Cache-Control` header indicating that the response should not be cached.
69pub const CACHE_CONTROL_PRIVATE: &str = "private";
70
71/// The value for the `Cache-Control` header indicating that the response is cacheable by any cache.
72pub const CACHE_CONTROL_PUBLIC: &str = "public";
73
74/// The value for the `Connection` header indicating a close connection.
75pub const CONNECTION_CLOSE: &str = "close";
76
77/// The value for the `X-Frame-Options` header to allow the page to be framed only by the same origin.
78pub const X_FRAME_OPTIONS_SAMEORIGIN: &str = "SAMEORIGIN";
79
80/// Charset
81pub const CHARSET: &str = "charset";
82
83/// Charset Equal
84pub const CHARSET_EQUAL: &str = "charset=";
85
86/// UTF-8
87pub const UTF8: &str = "utf-8";
88
89/// ASCII
90pub const ASCII: &str = "us-ascii";
91
92/// ISO-8859-1 (Latin-1)
93pub const ISO_8859_1: &str = "iso-8859-1";
94
95/// ISO-8859-2 (Latin-2, Central European)
96pub const ISO_8859_2: &str = "iso-8859-2";
97
98/// ISO-8859-3 (Latin-3, South European)
99pub const ISO_8859_3: &str = "iso-8859-3";
100
101/// ISO-8859-4 (Latin-4, North European)
102pub const ISO_8859_4: &str = "iso-8859-4";
103
104/// ISO-8859-5 (Cyrillic)
105pub const ISO_8859_5: &str = "iso-8859-5";
106
107/// ISO-8859-6 (Arabic)
108pub const ISO_8859_6: &str = "iso-8859-6";
109
110/// ISO-8859-7 (Greek)
111pub const ISO_8859_7: &str = "iso-8859-7";
112
113/// ISO-8859-8 (Hebrew)
114pub const ISO_8859_8: &str = "iso-8859-8";
115
116/// ISO-8859-9 (Latin-5, Turkish)
117pub const ISO_8859_9: &str = "iso-8859-9";
118
119/// ISO-8859-10 (Latin-6, Nordic)
120pub const ISO_8859_10: &str = "iso-8859-10";
121
122/// ISO-8859-11 (Thai)
123pub const ISO_8859_11: &str = "iso-8859-11";
124
125/// ISO-8859-13 (Latin-7, Baltic Rim)
126pub const ISO_8859_13: &str = "iso-8859-13";
127
128/// ISO-8859-14 (Latin-8, Celtic)
129pub const ISO_8859_14: &str = "iso-8859-14";
130
131/// ISO-8859-15 (Latin-9, Western European with € symbol)
132pub const ISO_8859_15: &str = "iso-8859-15";
133
134/// ISO-8859-16 (Latin-10, South-Eastern European)
135pub const ISO_8859_16: &str = "iso-8859-16";
136
137/// Windows-1250 (Central European)
138pub const WINDOWS_1250: &str = "windows-1250";
139
140/// Windows-1251 (Cyrillic)
141pub const WINDOWS_1251: &str = "windows-1251";
142
143/// Windows-1252 (Western European)
144pub const WINDOWS_1252: &str = "windows-1252";
145
146/// Windows-1253 (Greek)
147pub const WINDOWS_1253: &str = "windows-1253";
148
149/// Windows-1254 (Turkish)
150pub const WINDOWS_1254: &str = "windows-1254";
151
152/// Windows-1255 (Hebrew)
153pub const WINDOWS_1255: &str = "windows-1255";
154
155/// Windows-1256 (Arabic)
156pub const WINDOWS_1256: &str = "windows-1256";
157
158/// Windows-1257 (Baltic)
159pub const WINDOWS_1257: &str = "windows-1257";
160
161/// Windows-1258 (Vietnamese)
162pub const WINDOWS_1258: &str = "windows-1258";
163
164/// KOI8-R (Russian)
165pub const KOI8_R: &str = "koi8-r";
166
167/// KOI8-U (Ukrainian)
168pub const KOI8_U: &str = "koi8-u";
169
170/// Shift JIS (Japanese)
171pub const SHIFT_JIS: &str = "shift_jis";
172
173/// EUC-JP (Japanese)
174pub const EUC_JP: &str = "euc-jp";
175
176/// EUC-KR (Korean)
177pub const EUC_KR: &str = "euc-kr";
178
179/// GB2312 (Simplified Chinese)
180pub const GB2312: &str = "gb2312";
181
182/// Big5 (Traditional Chinese)
183pub const BIG5: &str = "big5";
184
185/// UTF-16 (16-bit Unicode)
186pub const UTF16: &str = "utf-16";
187
188/// UTF-16LE (UTF-16 Little Endian)
189pub const UTF16LE: &str = "utf-16le";
190
191/// UTF-16BE (UTF-16 Big Endian)
192pub const UTF16BE: &str = "utf-16be";
193
194/// UTF-32 (32-bit Unicode)
195pub const UTF32: &str = "utf-32";
196
197/// UTF-32LE (UTF-32 Little Endian)
198pub const UTF32LE: &str = "utf-32le";
199
200/// UTF-32BE (UTF-32 Big Endian)
201pub const UTF32BE: &str = "utf-32be";
202
203/// Charset utf8
204pub const CHARSET_UTF_8: &str = "charset=utf-8";
205
206/// Charset iso-8859-1
207pub const CHARSET_ISO_8859_1: &str = "charset=iso-8859-1";
208
209/// Charset windows-1252
210pub const CHARSET_WINDOWS_1252: &str = "charset=windows-1252";
211
212/// Charset shift_jis
213pub const CHARSET_SHIFT_JIS: &str = "charset=shift_jis";
214
215/// Charset gb2312
216pub const CHARSET_GB2312: &str = "charset=gb2312";
217
218/// Charset big5
219pub const CHARSET_BIG5: &str = "charset=big5";
220
221/// Charset utf-16
222pub const CHARSET_UTF_16: &str = "charset=utf-16";
223
224/// Charset utf-32
225pub const CHARSET_UTF_32: &str = "charset=utf-32";
226
227/// Charset macintosh
228pub const CHARSET_MACINTOSH: &str = "charset=macintosh";
229
230/// Charset euc-kr
231pub const CHARSET_EUC_KR: &str = "charset=euc-kr";
232
233/// Charset us-ascii
234pub const CHARSET_ASCII: &str = "charset=us-ascii";
235
236/// Charset iso-8859-2
237pub const CHARSET_ISO_8859_2: &str = "charset=iso-8859-2";
238
239/// Charset iso-8859-3
240pub const CHARSET_ISO_8859_3: &str = "charset=iso-8859-3";
241
242/// Charset iso-8859-4
243pub const CHARSET_ISO_8859_4: &str = "charset=iso-8859-4";
244
245/// Charset iso-8859-5
246pub const CHARSET_ISO_8859_5: &str = "charset=iso-8859-5";
247
248/// Charset iso-8859-6
249pub const CHARSET_ISO_8859_6: &str = "charset=iso-8859-6";
250
251/// Charset iso-8859-7
252pub const CHARSET_ISO_8859_7: &str = "charset=iso-8859-7";
253
254/// Charset iso-8859-8
255pub const CHARSET_ISO_8859_8: &str = "charset=iso-8859-8";
256
257/// Charset iso-8859-9
258pub const CHARSET_ISO_8859_9: &str = "charset=iso-8859-9";
259
260/// Charset iso-8859-10
261pub const CHARSET_ISO_8859_10: &str = "charset=iso-8859-10";
262
263/// Charset iso-8859-11
264pub const CHARSET_ISO_8859_11: &str = "charset=iso-8859-11";
265
266/// Charset iso-8859-13
267pub const CHARSET_ISO_8859_13: &str = "charset=iso-8859-13";
268
269/// Charset iso-8859-14
270pub const CHARSET_ISO_8859_14: &str = "charset=iso-8859-14";
271
272/// Charset iso-8859-15
273pub const CHARSET_ISO_8859_15: &str = "charset=iso-8859-15";
274
275/// Charset iso-8859-16
276pub const CHARSET_ISO_8859_16: &str = "charset=iso-8859-16";
277
278/// Charset windows-1250
279pub const CHARSET_WINDOWS_1250: &str = "charset=windows-1250";
280
281/// Charset windows-1251
282pub const CHARSET_WINDOWS_1251: &str = "charset=windows-1251";
283
284/// Charset windows-1253
285pub const CHARSET_WINDOWS_1253: &str = "charset=windows-1253";
286
287/// Charset windows-1254
288pub const CHARSET_WINDOWS_1254: &str = "charset=windows-1254";
289
290/// Charset windows-1255
291pub const CHARSET_WINDOWS_1255: &str = "charset=windows-1255";
292
293/// Charset windows-1256
294pub const CHARSET_WINDOWS_1256: &str = "charset=windows-1256";
295
296/// Charset windows-1257
297pub const CHARSET_WINDOWS_1257: &str = "charset=windows-1257";
298
299/// Charset windows-1258
300pub const CHARSET_WINDOWS_1258: &str = "charset=windows-1258";
301
302/// Charset koi8-r
303pub const CHARSET_KOI8_R: &str = "charset=koi8-r";
304
305/// Charset koi8-u
306pub const CHARSET_KOI8_U: &str = "charset=koi8-u";
307
308/// Charset euc-jp
309pub const CHARSET_EUC_JP: &str = "charset=euc-jp";
310
311/// Charset utf-16le
312pub const CHARSET_UTF_16LE: &str = "charset=utf-16le";
313
314/// Charset utf-16be
315pub const CHARSET_UTF_16BE: &str = "charset=utf-16be";
316
317/// Charset utf-32le
318pub const CHARSET_UTF_32LE: &str = "charset=utf-32le";
319
320/// Charset utf-32be
321pub const CHARSET_UTF_32BE: &str = "charset=utf-32be";