Skip to main content

read_request

Function read_request 

Source
pub async fn read_request(
    stream: &mut TcpStream,
    max_body: usize,
) -> Result<(String, String, Option<String>, Vec<u8>)>
Expand description

Read one request: (method, path, bearer, body). Body limited to max_body.