[][src]Function elaine::recognize

pub async fn recognize<R>(__arg0: R) -> Result<Head, Error> where
    R: Read + Unpin

Reads from the reader, consuming valid utf-8 charactes in 1-4 byte sized chunks, stopping after successfully reaching a CR LF sequence. The method will return an std::io::Error under any of the following conditions:

  • A failed read from the underlying reader.
  • Invalid first line, per the request line specification.
  • Invalid utf-8 encoding, at any point.

Arguments