feat!: switch HTTP transport from httpx to httpx2 - #14
Merged
Conversation
httpx development has stalled; httpx2 is the Pydantic-maintained fork with the same API (import name httpx2, httpcore vendored as httpcore2, truststore instead of certifi). BREAKING CHANGE: a custom client passed via Api(client=) must now be an httpx2.AsyncClient.
challey74
force-pushed
the
httpx2-migration
branch
from
August 18, 2026 02:22
2d1fb10 to
9ab0975
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
httpx development has stalled; httpx2 is the Pydantic-maintained fork with the same API. This swaps the dependency (
httpx>=0.28.1->httpx2>=2.0.0) and renames the import everywhere: src, tests,scripts/generate_endpoints.py, and docs. Bumps the version to 0.2.0 with a dated changelog entry.Breaking: a custom client passed via
Api(client=)must now be anhttpx2.AsyncClient.Behavior note: httpx2 uses truststore (OS trust store) instead of certifi for SSL verification, so machine-installed corporate/internal CAs now work out of the box.
Test plan
uv run pytest: 90 passeduv run ruff check/uv run ruff format --check: cleanuv run pyright: 0 errors