We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
ContentEncoding::zstd
1 parent 690cc45 commit 2298faaCopy full SHA for 2298faa
src/common/content_encoding.rs
@@ -24,6 +24,7 @@ use crate::util::FlatCsv;
24
///
25
/// * `gzip`
26
/// * `br`
27
+/// * `zstd`
28
29
/// # Examples
30
@@ -53,6 +54,12 @@ impl ContentEncoding {
53
54
ContentEncoding(HeaderValue::from_static("br").into())
55
}
56
57
+ /// A constructor to easily create a `Content-Encoding: zstd` header.
58
+ #[inline]
59
+ pub fn zstd() -> ContentEncoding {
60
+ ContentEncoding(HeaderValue::from_static("zstd").into())
61
+ }
62
+
63
/// Check if this header contains a given "coding".
64
65
/// This can be used with these argument types:
0 commit comments