[][src]Struct barc::BrotliCompressStrategy

pub struct BrotliCompressStrategy { /* fields omitted */ }

Strategy for Brotli compression. Will only compress if a minimum length of compressible bytes, from the response and request bodies and headers is found.

Methods

impl BrotliCompressStrategy[src]

pub fn set_min_len(self, size: u64) -> Self[src]

Set minimum length of compressible bytes required to use compression. Default: 1 KiB.

pub fn set_compression_level(self, level: u32) -> Self[src]

Set the compression level to use, typically on a scale of 0-9 where 0 is no compression and 9 is highest (and slowest) compression. Default: 6.

pub fn set_check_identity(self, check: bool) -> Self[src]

Set whether to check the meta -decoded header for an "identity" value, as proof that the content-type header actually characterizes the associated body.

For example, body_image_futio::decode_res_body as of crate version 1.1.0, will set this value on an original Dialog, which is preserved when converted to a Record for barc write. Default: true (changed in 2.0.0)

Trait Implementations

impl Clone for BrotliCompressStrategy[src]

impl CompressStrategy for BrotliCompressStrategy[src]

impl Copy for BrotliCompressStrategy[src]

impl Debug for BrotliCompressStrategy[src]

impl Default for BrotliCompressStrategy[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,