[][src]Function async_httype::read_protocol_lines

pub async fn read_protocol_lines<'_, '_, I>(
    input: &'_ mut I,
    lines: &'_ mut Vec<String>,
    limit: Option<usize>
) -> Result<usize, Error> where
    I: Read + Unpin

Parses HTTP protocol headers into lines. What's left in the stream represents request body. Limit in number of bytes for the protocol headers can be applied.