Elaine

![ci.img] ![docs.img] ![crates.img]

This crate provides a lightweight and potentially incomplete http head parser implementation for async-std readers.

Example

```rust use std::boxed::Box; use std::error::Error;

use elaine::recognize; use asyncstd::task::blockon;

fn main() -> Result<(), Box> { blockon(async { let mut req: &[u8] = b"GET /elaine HTTP/1.1\r\nContent-Length: 3\r\n\r\nhey"; let result = recognize(&mut req).await.unwrap(); asserteq!(result.method(), Some("GET".tostring())); asserteq!(result.len(), Some(3)); asserteq!(std::str::fromutf8(req), Ok("hey")); }); Ok(()) } ```

| elaine | | --- | | elaine |

Contributing

See CONTRIBUTING.