Function http_encoding::encoder

source ·
pub fn encoder<S, T, E>(
    response: Response<S>,
    encoding: ContentEncoding
) -> Response<Coder<S, FeaturedCode>>
where S: Stream<Item = Result<T, E>>, T: AsRef<[u8]> + 'static,
Expand description

Construct from headers and stream body. Use for encoding.