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