[−][src]Function async_httype::relay_chunked_stream
pub async fn relay_chunked_stream<'_, '_, I, O>(
input: &'_ mut I,
output: &'_ mut O,
limit: Option<usize>
) -> Result<usize, Error> where
I: Write + Read + Unpin,
O: Write + 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.