Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Add httpx2 to the full extra#3323

Merged
Kludex merged 2 commits into
mainfrom
add-httpx2-to-full-extra
Jun 8, 2026
Merged

Add httpx2 to the full extra#3323
Kludex merged 2 commits into
mainfrom
add-httpx2-to-full-extra

Conversation

@Kludex

@Kludex Kludex commented Jun 8, 2026

Copy link
Copy Markdown
Owner

TestClient already prefers httpx2 and treats plain httpx as deprecated, but starlette[full] only shipped httpx, so pip install starlette[full] landed users on the deprecated path. This adds httpx2 to [full] (keeping httpx for backwards compatibility, so it's non-breaking) and documents that httpx2 is the one TestClient uses.

Closes the question raised in #3320.

  • pyproject.toml: add httpx2>=2.0.0 to [full].
  • Docs (index.md, README.md, testclient.md): reference httpx2 and add a note that plain httpx is deprecated.
  • tests/types.py: import httpx2 instead of plain httpx.

AI Disclaimer

This PR was developed with the assistance of either Claude or Codex. I've reviewed and verified the changes.

@Kludex Kludex enabled auto-merge (squash) June 8, 2026 08:53
@github-actions

github-actions Bot commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

@Kludex Kludex merged commit 8214ac5 into main Jun 8, 2026
13 checks passed
@Kludex Kludex deleted the add-httpx2-to-full-extra branch June 8, 2026 08:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant