• Home
  • Raw
  • Download

Lines Matching full:zstd

7 #[cfg(feature = "zstd")]
8 use zstd::stream::read::{Decoder, Encoder};
18 #[cfg(feature = "zstd")]
19 pub(crate) zstd: bool, field
28 #[cfg(feature = "zstd")] in is_enabled()
29 CompressionEncoding::Zstd => self.zstd, in is_enabled()
38 #[cfg(feature = "zstd")] in enable()
39 CompressionEncoding::Zstd => self.zstd = true, in enable()
46 (false, true) => Some(http::HeaderValue::from_static("zstd,identity")), in into_accept_encoding_header_value()
47 (true, true) => Some(http::HeaderValue::from_static("gzip,zstd,identity")), in into_accept_encoding_header_value()
62 #[cfg(feature = "zstd")]
64 self.zstd in is_zstd_enabled()
67 #[cfg(not(feature = "zstd"))]
82 #[cfg(feature = "zstd")]
83 #[cfg_attr(docsrs, doc(cfg(feature = "zstd")))]
84 Zstd, enumerator
103 #[cfg(feature = "zstd")] in from_accept_encoding_header()
104 "zstd" => Some(CompressionEncoding::Zstd), in from_accept_encoding_header()
131 #[cfg(feature = "zstd")] in from_encoding_header()
132 "zstd" if enabled_encodings.is_enabled(CompressionEncoding::Zstd) => { in from_encoding_header()
133 Ok(Some(CompressionEncoding::Zstd)) in from_encoding_header()
156 #[cfg(any(feature = "gzip", feature = "zstd"))]
161 #[cfg(feature = "zstd")] in as_str()
162 CompressionEncoding::Zstd => "zstd", in as_str()
166 #[cfg(any(feature = "gzip", feature = "zstd"))]
175 #[cfg(feature = "zstd")] in encodings()
176 CompressionEncoding::Zstd, in encodings()
187 #[cfg(feature = "zstd")] in fmt()
188 CompressionEncoding::Zstd => write!(f, "zstd"), in fmt()
208 #[cfg(any(feature = "gzip", feature = "zstd"))] in compress()
221 #[cfg(feature = "zstd")] in compress()
222 CompressionEncoding::Zstd => { in compress()
226 zstd::DEFAULT_COMPRESSION_LEVEL, in compress()
249 #[cfg(any(feature = "gzip", feature = "zstd"))] in decompress()
258 #[cfg(feature = "zstd")] in decompress()
259 CompressionEncoding::Zstd => { in decompress()