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.
1 parent 334be72 commit 41fc354Copy full SHA for 41fc354
decompression-plz/src/lib.rs
@@ -68,6 +68,16 @@ pub mod tests {
68
compress_zstd(&gzip_compressed)
69
}
70
71
+ pub fn single_compression(encoding: &ContentEncoding) -> Vec<u8> {
72
+ match encoding {
73
+ ContentEncoding::Brotli => compress_brotli(INPUT),
74
+ ContentEncoding::Deflate => compress_deflate(INPUT),
75
+ ContentEncoding::Gzip => compress_gzip(INPUT),
76
+ ContentEncoding::Zstd => compress_zstd(INPUT),
77
+ _ => panic!(),
78
+ }
79
80
+
81
pub fn all_encoding_info_multi_header() -> Vec<EncodingInfo> {
82
vec![
83
EncodingInfo::new(0, vec![ContentEncoding::Brotli]),
0 commit comments