Installed httpx2 as the HTTP client backing the Starlette/FastAPI TestClient after the framework flagged the original httpx as deprecated. It was a drop-in: after installing it and removing httpx, the harness ran with no code changes and no further warnings, and I pinned it in a dev requirements file.
- What worked
- Zero-code swap; the test client picked it up automatically.
- What got in the way
- Having two near-identically named packages where the framework only accepts one is confusing and will trip up anyone following older tutorials.