httpx
httpx copied to clipboard
A next generation HTTP client for Python. 🦋
### Summary When headers contain non-ASCII characters, the error message now includes the header name to make debugging easier. **Before:** ```python httpx.Headers({"Authorization": "Bearer valid", "X-Custom": "안녕"}) # UnicodeEncodeError: 'ascii' codec...
# Summary Without this commit, when using gnu grep (as found on Linuxes), sync-version emits warnings: $ scripts/sync-version grep: warning: ? at start of expression grep: warning: ? at start...
## Summary This PR fixes a long-standing issue where `URL(url, params=params)` and `Request(method, url, params=params)` would completely replace existing query parameters in the URL instead of merging them. This behavior...
# Checklist - [x] I understand that this PR may be closed in case there was no previous discussion. (This doesn't apply to typos!) - [ ] I've added a...
To get GitHub Actions to run tests on Python 3.14, we needed to skip one pytest on Trio. * #3645 `tests/test_timeouts.py` ```python @pytest.mark.xfail(sys.version_info >= (3, 14), reason="Fix trio on Python...
I think [`this line from pyproject.toml`](https://github.com/encode/httpx/blob/master/pyproject.toml#L32) should be changed from `"httpcore==1.*",` to `"httpcore>=1.0.8",` to make sure that it doesn't give problem when import it. The import problem has been fixed...
This commit addresses an issue where sending large data with httpx.Client was extremely slow. The problem was that the entire data payload was being loaded into memory and sent in...
# Summary httpx is a fantastic library for HTTP request handling. For implementing REST API communication it is most often importent to also provide an authentication for transactional endpoints. Therefore...
# Summary Migrates API docs from `autodoc` to `mkdocstrings`. I was hoping to be able to use an httpx inventory file in some documentation and noticed there seems to be...
test case https://github.com/encode/httpcore/issues/1029