Python's requests
library supports chunked transfer:
Requests also supports Chunked transfer encoding for outgoing and incoming requests. To send a chunk-encoded request, simply provide a generator (or any iterator without a length) for your body
But the docs do not say when to use this approach.
I'm sending audio to an Azure API endpoint. The audio files are:
- 98 KB on average
- 478 KB max to date (and I do not expect them to get significantly bigger, because of a limit on the audio duration)
- the median is at 76 KB
- Should I use a chunked approach or not?
- What's a reasonable threshold at which to start considering it?