oscartbeaumont / httpz

Code once, support every Rust webserver!
MIT License
28 stars 4 forks source link

Support streaming the request/response body #3

Open oscartbeaumont opened 2 years ago

oscartbeaumont commented 2 years ago

Currently, we represent the request/response body as a Vec<u8>. This means the entire body must be collected in memory which isn't very efficient for large payloads. It would be great to allow the body to be passed or sent in chunks so that the entire thing does not need to be in memory at once.