http_constant/constant/header_value.rs
1/// The default value for the `Accept-Language` header indicating any language is acceptable.
2pub static ACCEPT_LANGUAGE_DEFAULT: &str = "*";
3
4/// The value for the `Authorization` header when using Basic authentication.
5pub static AUTHORIZATION_BASIC: &str = "Basic";
6
7/// The value for the `Cache-Control` header indicating no-cache.
8pub static CACHE_CONTROL_NO_CACHE: &str = "no-cache";
9
10/// The value for the `Connection` header indicating keep-alive.
11pub static CONNECTION_KEEP_ALIVE: &str = "keep-alive";
12
13/// The value for the `Transfer-Encoding` header indicating chunked transfer encoding.
14pub static TRANSFER_ENCODING_CHUNKED: &str = "chunked";
15
16/// The value for the `X-Frame-Options` header to prevent the page from being framed.
17pub static X_FRAME_OPTIONS_DENY: &str = "DENY";
18
19/// The value for the `X-Content-Type-Options` header to prevent MIME sniffing.
20pub static X_CONTENT_TYPE_OPTIONS_NOSNIFF: &str = "nosniff";
21
22/// The value for the `X-Requested-With` header indicating an AJAX request.
23pub static X_REQUESTED_WITH_XMLHTTPREQUEST: &str = "XMLHttpRequest";
24
25/// The value for the `Accept` header indicating that any content type is acceptable.
26pub static ACCEPT_ANY: &str = "*/*";
27
28/// The value for the `Accept-Encoding` header indicating gzip compression.
29pub static ACCEPT_ENCODING_GZIP: &str = "gzip";
30
31/// The value for the `Accept-Encoding` header indicating deflate compression.
32pub static ACCEPT_ENCODING_DEFLATE: &str = "deflate";
33
34/// The value for the `Accept-Encoding` header indicating br (Brotli) compression.
35pub static ACCEPT_ENCODING_BROTLI: &str = "br";
36
37/// The value for the `Accept-Encoding` header indicating no encoding (identity).
38pub static 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 static 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 static 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 static 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 static CONTENT_ENCODING_IDENTITY: &str = "identity";
55
56/// The value for the `Accept-Language` header indicating any language is acceptable.
57pub static ACCEPT_LANGUAGE_ANY: &str = "*";
58
59/// Any
60pub static ANY: &str = "*";
61
62/// The value for the `Accept-Language` header indicating English as the preferred language.
63pub static ACCEPT_LANGUAGE_ENGLISH: &str = "en";
64
65/// The value for the `Authorization` header indicating Bearer token authentication.
66pub static AUTHORIZATION_BEARER: &str = "Bearer";
67
68/// The value for the `Cache-Control` header indicating that the response should not be cached.
69pub static CACHE_CONTROL_PRIVATE: &str = "private";
70
71/// The value for the `Cache-Control` header indicating that the response is cacheable by any cache.
72pub static CACHE_CONTROL_PUBLIC: &str = "public";
73
74/// The value for the `Connection` header indicating a close connection.
75pub static 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 static X_FRAME_OPTIONS_SAMEORIGIN: &str = "SAMEORIGIN";
79
80/// Charset utf8
81pub static CHARSET_UTF_8: &str = "charset=utf-8";
82
83/// Charset iso-8859-1
84pub static CHARSET_ISO_8859_1: &str = "charset=iso-8859-1";
85
86/// Charset windows-1252
87pub static CHARSET_WINDOWS_1252: &str = "charset=windows-1252";
88
89/// Charset shift_jis
90pub static CHARSET_SHIFT_JIS: &str = "charset=shift_jis";
91
92/// Charset gb2312
93pub static CHARSET_GB2312: &str = "charset=gb2312";
94
95/// Charset big5
96pub static CHARSET_BIG5: &str = "charset=big5";
97
98/// Charset utf-16
99pub static CHARSET_UTF_16: &str = "charset=utf-16";
100
101/// Charset utf-32
102pub static CHARSET_UTF_32: &str = "charset=utf-32";
103
104/// Charset macintosh
105pub static CHARSET_MACINTOSH: &str = "charset=macintosh";
106
107/// Charset euc-kr
108pub static CHARSET_EUC_KR: &str = "charset=euc-kr";