Function get_decoder

Source
pub(crate) fn get_decoder<'a, S: AsyncBufRead + Unpin + Send + 'a>(
    stream: S,
    encoding: Option<&str>,
    anonymized: AnonymizedRequest,
) -> RequestResult<Box<dyn AsyncRead + Unpin + Send + 'a>>
Expand description

Wrap stream in an appropriate type to undo the content encoding as described in encoding.