Migrate HTTP client from httpx to httpx2 #15
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/issue-10-httpx2-migration"
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?
Swaps the HTTP client dependency from
httpx~=0.28.1tohttpx2~=2.12.0(pydantic fork) per project convention, and migrates all imports:src/yunjin/services/fetcher.py—httpx2.get()src/yunjin/services/media_extractor.py—httpx2.get()/httpx2.head(), exception typessrc/yunjin/services/llm_aggregator.py—httpx2.post(), exception types (in scope per issue goal: all HTTP client usage; file postdates the issue body)test_fetcher.py/test_aggregator.pyRoadmap.mddependency summary updatedAPI compatibility verified against the installed httpx2 2.12.0 source:
get/post/headsignatures,TimeoutException/RequestError/HTTPStatusError, andResponseattributes are identical to the httpx call sites. Only yunjin depended on httpx inuv.lock, so it drops out cleanly.Closes #10
This PR is too large to review automatically (2485 lines; limit is 2000). Please consider splitting it into smaller PRs.