pypi / httpx2
httpx2
What changed in httpx2 2, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-18.
4 breaking1 security1 behavior and defaults5 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli inithttpx2 211 changes
Breaking changes 4
HTTP/1.1 is no longer advertised during TLS protocol negotiation when it is disabled.
HTTP/2 is preferred during TLS protocol negotiation when enabled.
The brotli extra on non-CPython implementations now requires brotlicffi 1.2.0.2 or later.
The trio extra now requires Trio 0.34.0 or later.
Security 1
Adds an explicit CLI counterpart for enabling TLS certificate verification.
Behavior and default changes 1
Entries can match IP CIDR ranges and bracketed IPv6 addresses; requests to addresses in a CIDR range bypass the proxy.
Fixes and other changes 5
When a file is passed as content, Content-Length is calculated from its remaining bytes, respecting its current position.
The
sni_hostnameextension is honored for TLS inside HTTP proxy tunnels without affecting the proxy's TLS connection.The sync WebSocket keepalive thread exits cleanly when a ping races with connection shutdown.
Avoids nested async generator finalization errors when streamed responses are abandoned early.
The CLI flag now disables TLS certificate verification as intended.