seanmonstar / httparse

A push parser for the HTTP 1.x protocol in Rust.
https://docs.rs/httparse
Apache License 2.0
573 stars 113 forks source link

provide example of parsing headers from a `Read` #64

Closed euclio closed 4 years ago

euclio commented 4 years ago

I found it really tricky to figure out how to do this, so I think that it would be nice to provide an example in the docs.

seanmonstar commented 4 years ago

Thanks for trying to fix up the docs!

I'm personally not a fan of BufRead, and along with the likely case where async IO would be a good idea for HTTP, I'm inclined to not include such an example.