Skip to content

Add a migration guide from httpx#1078

Merged
Kludex merged 7 commits into
mainfrom
document-httpx-migration
Jul 23, 2026
Merged

Add a migration guide from httpx#1078
Kludex merged 7 commits into
mainfrom
document-httpx-migration

Conversation

@Kludex

@Kludex Kludex commented Jul 23, 2026

Copy link
Copy Markdown
Member

Summary

Adds a Migrating from HTTPX docs page (placed right after QuickStart in the nav), aimed at the two audiences that keep asking about this:

Also documents the visible rename surface (CLI, User-Agent, loggers, httpcore2) and behavior differences (truststore, Python 3.10+, visible deprecation warnings), ends with a pre-ship checklist, and adds alias_httpx to the API reference.

AI Disclaimer

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

Review in cubic

@github-actions

github-actions Bot commented Jul 23, 2026

Copy link
Copy Markdown

@codspeed-hq

codspeed-hq Bot commented Jul 23, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 15 untouched benchmarks
⏩ 7 skipped benchmarks1


Comparing document-httpx-migration (7248191) with main (e111465)

Open in CodSpeed

Footnotes

  1. 7 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 7e30fcc1dd

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread docs/migration.md

* **SSL verification uses the operating system's trust store**, via [`truststore`](https://truststore.readthedocs.io/), instead of `certifi`'s bundled certificates. For most users this just means fewer corporate-proxy headaches. The `SSL_CERT_FILE` and `SSL_CERT_DIR` environment variables are still honored first, and you can still pass `verify=` explicitly. See [SSL](advanced/ssl.md) for details.
* **Python 3.10 or newer is required**. Support for Python 3.9 was dropped.
* **Deprecation warnings are visible by default**. `httpx2` uses `HTTPXDeprecationWarning`, a `UserWarning` subclass, so you will actually see deprecations without configuring warning filters.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Don’t promise every deprecation is visible

This overstates the current runtime behavior: several active deprecations still emit the built-in DeprecationWarning (for example verify=<str>/cert=... in src/httpx2/httpx2/_config.py, per-request cookies in _client.py, and raw data= bytes in _content.py), which is ignored by default when raised from library code. Users migrating those call sites therefore will not see the warnings without configuring filters, contrary to this guide.

Useful? React with 👍 / 👎.

Comment thread docs/migration.md
Comment thread docs/migration.md Outdated
@Kludex
Kludex enabled auto-merge (squash) July 23, 2026 13:51
@Kludex
Kludex merged commit 51d8234 into main Jul 23, 2026
15 checks passed
@Kludex
Kludex deleted the document-httpx-migration branch July 23, 2026 13:54
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