Struct iron_compress::DeflateWriter [] [src]

pub struct DeflateWriter<'a>(pub &'a [u8]);

A type that knows how to encode a stream of bytes with the deflate algorithm.

Trait Implementations

impl<'a> Modifier<Response> for DeflateWriter<'a>
[src]

Encode the bytes with the deflate algorithm.

Panics

This will panic if the encoder cannot finish writing the stream.