[][src]Function async_httype::read_chunked_stream

pub async fn read_chunked_stream<'_, '_, I>(
    stream: &'_ mut I,
    source: &'_ mut Vec<u8>,
    limit: Option<usize>
) -> Result<usize, Error> where
    I: Read + Unpin

Streams chunk body data from input to output. Body length is unknown but we can provide size limit.

The method searches for 0\r\n\r\n which indicates the end of an input stream. If the limit is set and the body exceeds the allowed size then the forwarding will be stopped with an event.