async_h1::server

Function decode

Source
pub async fn decode<IO>(io: IO) -> Result<Option<(Request, BodyReader<IO>)>>
where IO: Read + Write + Clone + Send + Sync + Unpin + 'static,
Expand description

Decode an HTTP request on the server.