You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
httpx has seen no commit since February 2026. httpx2 is the fork its
original author now maintains under Pydantic's stewardship, published
from pydantic/httpx2 under the same BSD-3-Clause licence; it forked
httpx 0.28.1 and keeps the public API, so this is a rename rather than
a rewrite. The wider ecosystem has already moved: the Anthropic Python
SDK requires httpx2 as of its 1.0 release.
This is a breaking change for callers, because litfetch's HTTP types
are part of its surface. The two packages install side by side but
their classes are distinct, so an object cannot cross between them:
`Session.client` now returns an `httpx2.AsyncClient`, `client_factory`
must build one, `Session.get` returns an `httpx2.Response`, and the
errors litfetch raises are `httpx2` exceptions that an `except httpx`
clause no longer catches. Callers migrate by renaming their own
imports. Version bumped to 0.3.0 accordingly.
Two visible behaviour changes come with the fork: TLS is verified
against the operating system trust store via truststore rather than
certifi's bundle, and deprecation warnings are shown by default.
ADR 0001 is left untouched. It is a dated record of why a Session owns
one client and the per-host pacing state, and that decision is
unaffected by which package supplies the client.
0 commit comments