![ci.img] ![docs.img] ![crates.img]
This crate provides a lightweight and potentially incomplete http head parser implementation for async-std readers.
This crate is intended to provide an HTTP head parser for async [readers
] with a focus on simplicity and safety;
while performance is appreciated, safety and simplicity take priority.
The api provided by this crate will never include unsafe
code directly, including code that would otherwise
improve the performance of the libary. In addition, the main export - recognize
- provides the
guaruntee that it will never over-read bytes from a reader, again at the potential loss of performance.
This crate does not include the http
in it's dependencies; though well-maintained and useful as it is,
it would introduce a super set of functionality that is not required for this implementation. This decision is not
in any way meant to discourage other developers from using that library.
```rust use std::boxed::Box; use std::error::Error;
use elaine::{recognize, RequestMethod}; use asyncstd::task::blockon;
fn main() -> Result<(), Box
| elaine |
| --- |
| |
See CONTRIBUTING.