unstale

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 init

@unstale/cli 0.1.1 on npm

httpx2 211 changes

Breaking changes 4

  • HTTP/1.1 is no longer advertised during TLS protocol negotiation when it is disabled.

    2.13.1release notes

  • HTTP/2 is preferred during TLS protocol negotiation when enabled.

    2.13.1release notes

  • The brotli extra on non-CPython implementations now requires brotlicffi 1.2.0.2 or later.

    2.13.0release notes

  • The trio extra now requires Trio 0.34.0 or later.

    2.13.0release notes

Security 1

  • Adds an explicit CLI counterpart for enabling TLS certificate verification.

    2.13.0release notes

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.

    2.14.0release notes

Fixes and other changes 5

  • When a file is passed as content, Content-Length is calculated from its remaining bytes, respecting its current position.

    2.13.1release notes

  • The sni_hostname extension is honored for TLS inside HTTP proxy tunnels without affecting the proxy's TLS connection.

    2.13.1release notes

  • The sync WebSocket keepalive thread exits cleanly when a ping races with connection shutdown.

    2.13.1release notes

  • Avoids nested async generator finalization errors when streamed responses are abandoned early.

    2.13.0release notes

  • The CLI flag now disables TLS certificate verification as intended.

    2.13.0release notes