Is your feature request related to a problem? Please describe.
You currently can't send raw file data over a request, besides as a string or a form.
Describe the solution you'd like
Allow data to be a Blob or typed array, like web fetch does.
Additional context
Uploading large 100mb+ files over a POST request - currently this is just a simple call with the web fetch API since you can send a Blob, but using this library it has to be wrapped in a FormData which makes parsing on the server more inefficient/complex.
Looking through the codebase it may be relatively simple to add this in assuming we can go from JS -> Native without duplicating the data a bunch of times and eating up memory.
Is your feature request related to a problem? Please describe. You currently can't send raw file data over a request, besides as a string or a form.
Describe the solution you'd like Allow
data
to be aBlob
or typed array, like web fetch does.Additional context Uploading large 100mb+ files over a POST request - currently this is just a simple call with the web fetch API since you can send a Blob, but using this library it has to be wrapped in a FormData which makes parsing on the server more inefficient/complex.
Looking through the codebase it may be relatively simple to add this in assuming we can go from JS -> Native without duplicating the data a bunch of times and eating up memory.