Migrate HTTP client from httpx to httpx2 #26
No reviewers
Labels
No labels
bug
contribution welcome
duplicate
enhancement
good first issue
help wanted
invalid
question
upstream
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Reference
marvin8/zaojun!26
Loading…
Reference in a new issue
No description provided.
Delete branch "refs/pull/26/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Replaces httpx with Pydantic's actively maintained fork httpx2 (v2.4.0). The original httpx project saw limited upstream activity; httpx2 provides the same API surface with a commitment to timely security updates.
Changes:
httpx[http2]~=0.28.1→httpx2[http2]~=2.4.0import httpx→import httpx2in source and testspytest-httpxfixture withhttpx2.MockTransport— no external mocking library needed, uses httpx2's own transport injection APIpytest-httpxfrom the pytest dependency group entirelyThe noxfile is unchanged; the
MockTransportapproach requires only the packages already installed by nox.254 tests pass across Python 3.11–3.14t.
Closes #25