Function http_encoding::try_decoder

source ·
pub fn try_decoder<Req, S, T, E>(
    req: Req,
    body: S
) -> Result<Coder<S, FeaturedCode>, EncodingError>
where Req: Borrow<Request<()>>, S: Stream<Item = Result<T, E>>, T: AsRef<[u8]> + 'static,
Expand description

Construct from headers and stream body. Use for decoding.