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.
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?
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.