oscartbeaumont / httpz

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

Support generic body type #20

Open oscartbeaumont opened 1 year ago

oscartbeaumont commented 1 year ago

Currently, it has to be Vec<u8> would be nice if it could be any type that the specific webserver understands how to use. This will probs require a bound on .webserver() such that it only works for body types that are compatible with that webserver.

oscartbeaumont commented 1 year ago

It would also be a good idea to investigate the performance of streaming JSON decoding. With the filesystem the recommendation is not to do this but I wonder if the network is a better usecase for it?