HTTPX2 is a fully featured HTTP client library for Python 3. It includes an
integrated command line client, has support for both HTTP/1.1 and HTTP/2,
and provides both sync and async APIs.
HTTPX2 is a continuation of the wonderful work started by
[lovelydinosaur](https://github.com/lovelydinosaur) and the broader HTTPX
community.
Provides
Requires
License
BSD-3-Clause
Changelog
* Sun Nov 22 2026 Dirk Müller <dmueller@suse.com>
- update to 2.16.2:
* Recheck the HTTP/2 flow control window after acquiring the
read lock. Concurrent uploads on one connection could stall
until the read timeout once the window was exhausted.
* Raise `LocalProtocolError` instead of `IndexError` when an
HTTP/2 request sent directly to a connection has no `Host`
header.
* Sun Oct 25 2026 Dirk Müller <dmueller@suse.com>
- update to 2.16.0:
* No changes since `2.15.1`. Version bumped to stay in lockstep
with `httpx2`.
* Configure the default SSL context once on Linux, instead of
on every handshake. With OpenSSL older than 3.4, CPU usage
grew over the lifetime of a reused client.
* Drop support for Python 3.10.
* Keep `CONNECT` and absolute-form proxy targets when the
request sets the `target` extension.
* Stop blocking reads when an HTTP/2 server lowers
`SETTINGS_MAX_CONCURRENT_STREAMS` while requests are in
flight.
* Raise `WriteError` instead of `anyio.EndOfStream` when
writing after the peer closes a TLS connection without
`close_notify`.
* Fri Sep 25 2026 Steve Kowalik <steven.kowalik@suse.com>
- Update to 2.13.1:
* Calculate Content-Length from the remaining bytes when a file is passed
as content=, respecting its current position.
* Stop the sync WebSocket keepalive thread cleanly when a ping races with
connection shutdown.
* Make the --no-verify CLI flag disable TLS certificate verification and
add an explicit --verify counterpart.
* Avoid nested async generator finalization errors when streamed responses
are abandoned early.
* Wed Aug 26 2026 Steve Kowalik <steven.kowalik@suse.com>
- Update to 2.12.0:
[#]# Added
* Add the public Origin value object and URL.origin property for
normalized, hashable origin comparisons.
* Add max_event_size to cap SSE event buffering.
* Add RFC 9110 status code constants.
* Add support for Python 3.15.
* Add alias_httpx(), letting applications make import httpx resolve to
httpx2 process-wide.
* Add native WebSocket support by vendoring httpx-ws.
* Add support for the QUERY HTTP method via httpx2.query() and
client.query().
[#]# Changed
* Use backports.zstd for Zstandard decoding on Python 3.13 and earlier.
* Require Brotli 1.2.0 or later for the brotli extra.
* Improve SSE chunk buffering performance.
* Skip cookie extraction for responses without Set-Cookie headers.
* Return str | None instead of Any from Headers.get.
* Update the vendored httpx-ws to upstream v0.9.0.
* Allow click 8.4+ in the cli extra, dropping the upper bound.
[#]# Fixed
* Bound peak memory while streaming compressed responses and close response
streams when decoding fails.
* Restore deprecated status code aliases.
* Extract HTTP/2 release notes from changelog headings correctly.
* Respect explicit Transfer-Encoding headers and expose buffered request
body lengths to WSGI applications.
* Validate multipart part header names and values before serialization.
* Enforce the WebSocket max message size across fragmented messages.
* Ignore unsolicited and duplicate WebSocket Pong frames.
* Alias httpcore imports to httpcore2 in alias_httpx().
* Wed Jul 01 2026 Dirk Müller <dmueller@suse.com>
- update to 2.5.0:
* Propagate the timeout through the SOCKS5 handshake.
* Wed Jun 17 2026 Steve Kowalik <steven.kowalik@suse.com>
- Use pytest-benchmark rather than pytest-codspeed.
- Loosen pytest requirement.
* Tue Jun 16 2026 Steve Kowalik <steven.kowalik@suse.com>
- Update to 2.4.0:
[#]# Added
* Add HTTPXDeprecationWarning, a UserWarning subclass shown by default so
deprecations are visible without enabling warnings.
[#]# Changed
* Limit the number of chained Content-Encoding decoders to 5.
* Allow version 15 of rich in the cli extra.
* Use truststore instead of certifi for default SSL verification, loading
the operating system's trust store.
[#]# Fixed
* Parse an empty Digest auth realm without crashing.
* Decode IDNA labels in non-leading host positions.
* Raise when verify is a string path and a client-side cert is also
provided to create_ssl_context.
* Allow a default_encoding callable to return None.
* Make the zstd import optional on Python 3.14.
* Store elapsed time on the stream wrapper to avoid reference cycles.
- Drop patches, merged upstream:
* version-fallback.patch
* fix-encoding-tests.patch
* Fri May 29 2026 Nico Krapp <nico.krapp@suse.com>
- Initial version 2.2.0
- Add version-fallback.patch to build outside of git repo
- Add fix-encoding-tests.patch to fix tests with chardet >= 6
Files
/usr/bin/httpx2
/usr/bin/httpx2-3.13
/usr/lib/python3.13/site-packages/httpx2
/usr/lib/python3.13/site-packages/httpx2-2.16.2.dist-info
/usr/lib/python3.13/site-packages/httpx2-2.16.2.dist-info/INSTALLER
/usr/lib/python3.13/site-packages/httpx2-2.16.2.dist-info/METADATA
/usr/lib/python3.13/site-packages/httpx2-2.16.2.dist-info/RECORD
/usr/lib/python3.13/site-packages/httpx2-2.16.2.dist-info/REQUESTED
/usr/lib/python3.13/site-packages/httpx2-2.16.2.dist-info/WHEEL
/usr/lib/python3.13/site-packages/httpx2-2.16.2.dist-info/entry_points.txt
/usr/lib/python3.13/site-packages/httpx2/__init__.py
/usr/lib/python3.13/site-packages/httpx2/__pycache__
/usr/lib/python3.13/site-packages/httpx2/__pycache__/__init__.cpython-313.opt-1.pyc
/usr/lib/python3.13/site-packages/httpx2/__pycache__/__init__.cpython-313.pyc
/usr/lib/python3.13/site-packages/httpx2/__pycache__/__version__.cpython-313.opt-1.pyc
/usr/lib/python3.13/site-packages/httpx2/__pycache__/__version__.cpython-313.pyc
/usr/lib/python3.13/site-packages/httpx2/__pycache__/_alias.cpython-313.opt-1.pyc
/usr/lib/python3.13/site-packages/httpx2/__pycache__/_alias.cpython-313.pyc
/usr/lib/python3.13/site-packages/httpx2/__pycache__/_api.cpython-313.opt-1.pyc
/usr/lib/python3.13/site-packages/httpx2/__pycache__/_api.cpython-313.pyc
/usr/lib/python3.13/site-packages/httpx2/__pycache__/_auth.cpython-313.opt-1.pyc
/usr/lib/python3.13/site-packages/httpx2/__pycache__/_auth.cpython-313.pyc
/usr/lib/python3.13/site-packages/httpx2/__pycache__/_client.cpython-313.opt-1.pyc
/usr/lib/python3.13/site-packages/httpx2/__pycache__/_client.cpython-313.pyc
/usr/lib/python3.13/site-packages/httpx2/__pycache__/_config.cpython-313.opt-1.pyc
/usr/lib/python3.13/site-packages/httpx2/__pycache__/_config.cpython-313.pyc
/usr/lib/python3.13/site-packages/httpx2/__pycache__/_content.cpython-313.opt-1.pyc
/usr/lib/python3.13/site-packages/httpx2/__pycache__/_content.cpython-313.pyc
/usr/lib/python3.13/site-packages/httpx2/__pycache__/_cookies.cpython-313.opt-1.pyc
/usr/lib/python3.13/site-packages/httpx2/__pycache__/_cookies.cpython-313.pyc
/usr/lib/python3.13/site-packages/httpx2/__pycache__/_decoders.cpython-313.opt-1.pyc
/usr/lib/python3.13/site-packages/httpx2/__pycache__/_decoders.cpython-313.pyc
/usr/lib/python3.13/site-packages/httpx2/__pycache__/_exceptions.cpython-313.opt-1.pyc
/usr/lib/python3.13/site-packages/httpx2/__pycache__/_exceptions.cpython-313.pyc
/usr/lib/python3.13/site-packages/httpx2/__pycache__/_main.cpython-313.opt-1.pyc
/usr/lib/python3.13/site-packages/httpx2/__pycache__/_main.cpython-313.pyc
/usr/lib/python3.13/site-packages/httpx2/__pycache__/_models.cpython-313.opt-1.pyc
/usr/lib/python3.13/site-packages/httpx2/__pycache__/_models.cpython-313.pyc
/usr/lib/python3.13/site-packages/httpx2/__pycache__/_multipart.cpython-313.opt-1.pyc
/usr/lib/python3.13/site-packages/httpx2/__pycache__/_multipart.cpython-313.pyc
/usr/lib/python3.13/site-packages/httpx2/__pycache__/_sse.cpython-313.opt-1.pyc
/usr/lib/python3.13/site-packages/httpx2/__pycache__/_sse.cpython-313.pyc
/usr/lib/python3.13/site-packages/httpx2/__pycache__/_status_codes.cpython-313.opt-1.pyc
/usr/lib/python3.13/site-packages/httpx2/__pycache__/_status_codes.cpython-313.pyc
/usr/lib/python3.13/site-packages/httpx2/__pycache__/_types.cpython-313.opt-1.pyc
/usr/lib/python3.13/site-packages/httpx2/__pycache__/_types.cpython-313.pyc
/usr/lib/python3.13/site-packages/httpx2/__pycache__/_urlparse.cpython-313.opt-1.pyc
/usr/lib/python3.13/site-packages/httpx2/__pycache__/_urlparse.cpython-313.pyc
/usr/lib/python3.13/site-packages/httpx2/__pycache__/_urls.cpython-313.opt-1.pyc
/usr/lib/python3.13/site-packages/httpx2/__pycache__/_urls.cpython-313.pyc
/usr/lib/python3.13/site-packages/httpx2/__pycache__/_utils.cpython-313.opt-1.pyc
/usr/lib/python3.13/site-packages/httpx2/__pycache__/_utils.cpython-313.pyc
/usr/lib/python3.13/site-packages/httpx2/__version__.py
/usr/lib/python3.13/site-packages/httpx2/_alias.py
/usr/lib/python3.13/site-packages/httpx2/_api.py
/usr/lib/python3.13/site-packages/httpx2/_auth.py
/usr/lib/python3.13/site-packages/httpx2/_client.py
/usr/lib/python3.13/site-packages/httpx2/_config.py
/usr/lib/python3.13/site-packages/httpx2/_content.py
/usr/lib/python3.13/site-packages/httpx2/_cookies.py
/usr/lib/python3.13/site-packages/httpx2/_decoders.py
/usr/lib/python3.13/site-packages/httpx2/_exceptions.py
/usr/lib/python3.13/site-packages/httpx2/_main.py
/usr/lib/python3.13/site-packages/httpx2/_models.py
/usr/lib/python3.13/site-packages/httpx2/_multipart.py
/usr/lib/python3.13/site-packages/httpx2/_sse.py
/usr/lib/python3.13/site-packages/httpx2/_status_codes.py
/usr/lib/python3.13/site-packages/httpx2/_transports
/usr/lib/python3.13/site-packages/httpx2/_transports/__init__.py
/usr/lib/python3.13/site-packages/httpx2/_transports/__pycache__
/usr/lib/python3.13/site-packages/httpx2/_transports/__pycache__/__init__.cpython-313.opt-1.pyc
/usr/lib/python3.13/site-packages/httpx2/_transports/__pycache__/__init__.cpython-313.pyc
/usr/lib/python3.13/site-packages/httpx2/_transports/__pycache__/asgi.cpython-313.opt-1.pyc
/usr/lib/python3.13/site-packages/httpx2/_transports/__pycache__/asgi.cpython-313.pyc
/usr/lib/python3.13/site-packages/httpx2/_transports/__pycache__/base.cpython-313.opt-1.pyc
/usr/lib/python3.13/site-packages/httpx2/_transports/__pycache__/base.cpython-313.pyc
/usr/lib/python3.13/site-packages/httpx2/_transports/__pycache__/default.cpython-313.opt-1.pyc
/usr/lib/python3.13/site-packages/httpx2/_transports/__pycache__/default.cpython-313.pyc
/usr/lib/python3.13/site-packages/httpx2/_transports/__pycache__/mock.cpython-313.opt-1.pyc
/usr/lib/python3.13/site-packages/httpx2/_transports/__pycache__/mock.cpython-313.pyc
/usr/lib/python3.13/site-packages/httpx2/_transports/__pycache__/wsgi.cpython-313.opt-1.pyc
/usr/lib/python3.13/site-packages/httpx2/_transports/__pycache__/wsgi.cpython-313.pyc
/usr/lib/python3.13/site-packages/httpx2/_transports/asgi.py
/usr/lib/python3.13/site-packages/httpx2/_transports/base.py
/usr/lib/python3.13/site-packages/httpx2/_transports/default.py
/usr/lib/python3.13/site-packages/httpx2/_transports/mock.py
/usr/lib/python3.13/site-packages/httpx2/_transports/wsgi.py
/usr/lib/python3.13/site-packages/httpx2/_types.py
/usr/lib/python3.13/site-packages/httpx2/_urlparse.py
/usr/lib/python3.13/site-packages/httpx2/_urls.py
/usr/lib/python3.13/site-packages/httpx2/_utils.py
/usr/lib/python3.13/site-packages/httpx2/py.typed
/usr/lib/python3.13/site-packages/httpx2/websockets
/usr/lib/python3.13/site-packages/httpx2/websockets/__init__.py
/usr/lib/python3.13/site-packages/httpx2/websockets/__pycache__
/usr/lib/python3.13/site-packages/httpx2/websockets/__pycache__/__init__.cpython-313.opt-1.pyc
/usr/lib/python3.13/site-packages/httpx2/websockets/__pycache__/__init__.cpython-313.pyc
/usr/lib/python3.13/site-packages/httpx2/websockets/__pycache__/_api.cpython-313.opt-1.pyc
/usr/lib/python3.13/site-packages/httpx2/websockets/__pycache__/_api.cpython-313.pyc
/usr/lib/python3.13/site-packages/httpx2/websockets/__pycache__/_exceptions.cpython-313.opt-1.pyc
/usr/li