Currently its String which means every time request is sent or received - we load the whole body into memory, which:
- Might be unnecessary - in some cases we know we don't need the body based on request metadata
- Blocking and takes up a lot of memory - if the request is 1Gb - it will be loaded into memory
- Might not be a string, but a blob
There's IO.FS.Stream, but I'm not sure how good it fits.
Currently its
Stringwhich means every time request is sent or received - we load the whole body into memory, which:There's
IO.FS.Stream, but I'm not sure how good it fits.