kvarn::comprash

Struct CompressionOptions

source
pub struct CompressionOptions {
    pub preferred: PreferredCompression,
    pub zstd_level: i32,
    pub brotli_level: u32,
    pub gzip_level: u32,
}
Expand description

Some options for how to compress the response.

Fields§

§preferred: PreferredCompression

The preferred compression algorithm.

§zstd_level: i32
Available on crate feature zstd only.

The level of zstd compression.

0 means that the C zstd library decides the default. Note that this can be negative. See https://facebook.github.io/zstd/ for more context.

§brotli_level: u32
Available on crate feature br only.

The level of zstd compression.

See some benchmarks for more context.