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