Struct iron_compress::GzipWriter [] [src]

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

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

Trait Implementations

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

fn modify(self, res: &mut Response)

Encode the bytes with the GZIP algorithm.

Panics

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