Function try_decoder

Source
pub fn try_decoder<S, T, E>(
    headers: &HeaderMap,
    body: S,
) -> Result<Coder<S, FeaturedCode>, EncodingError>
where S: Stream<Item = Result<T, E>>, T: AsRef<[u8]> + 'static,
Expand description

Construct from headers and stream body. Use for decoding.