webparse 0.1.2

http1.1/http2 parse http解析库
Documentation
# webparse


一个包含http1.1及http2的解析库。极少的依赖

## Usage


http/1.1的解析未例

```rust
let mut req = webparse::Request::new();
let ret = req.parse(b"GET /index.html HTTP/1.1\r\nHost");
assert!(ret.err().unwrap().is_partial());

let buf = b"GET /index.html HTTP/1.1\r\nHost: example.domain\r\n\r\n";
let ret = req.parse(buf).unwrap();

assert!(ret == buf.len());
assert!(req.is_complete());
```