Skip to main content

try_decoder

Function try_decoder 

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

Construct from headers and stream body. Use for decoding.