httpx
httpx copied to clipboard
async file in multipart file upload
trafficstars
Summary
Trying to implement support for async files (any AsyncIterable[bytes | str]) multipart file upload. Partially fixes https://github.com/encode/httpx/issues/1620
Checklist
- [x] I understand that this PR may be closed in case there was no previous discussion. (This doesn't apply to typos!)
- [x] I've added a test for each change that was introduced, and I tried as much as possible to make a single atomic change.
- [ ] I've updated the documentation accordingly. (not sure if update is needed)