httpx
httpx copied to clipboard
feat: support bytes as query value
trafficstars
Summary
ref: https://github.com/encode/httpx/issues/3170
bytes as query string are supported by url spec but not httpx, this PR add support for bytes query value types.
it also fix a QueryParams mutable problem when using set/add
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.