lazyhttp 0.1.0

A simple HTTP library to handle common stream objects (TcpStream, TlsStream, etc) sending HTTP data. This library is very simple and is intended to make reading raw HTTP less repeitive, and as such it does not handle responding or networking.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# lazyhttp

An easy library to handle stream objects (TcpStream, TlsStream, etc) transferring HTTP data. Includes a function to parse and return an object representing the request.

> This library does not handle networking or responding. This is really intended to remove a snippet of code that I find myself copying and pasting over and over again.

# Example

```rust
let listener = TcpListener::bind("addr");

for stream in listener.incoming() {
    if let Ok(req) = lazyhttp::handle_stream(&stream) {
        // Do something with req
    }
}
```