hjr3 / weldr

A HTTP 1.1 proxy written in Rust using tokio.
Apache License 2.0
217 stars 20 forks source link

Refactor response body code #39

Closed hjr3 closed 7 years ago

hjr3 commented 7 years ago

Abstract away the handling of the response body. So far this only works for content length, but can be extended to the other body types of chunked and (in the case of response) until socket close.

This also allows the same code to be used for request body handling.