docs: Migrate examples and guides from httpx to httpx2 - #1115
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1115 +/- ##
=======================================
Coverage 92.75% 92.75%
=======================================
Files 53 53
Lines 3519 3519
=======================================
Hits 3264 3264
Misses 255 255
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Pijukatel
approved these changes
Sep 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The SDK's examples and guides still reached for the original
httpx, which has had no releasesince 0.28.1 in December 2024. Its successor
httpx2is at 2.12.0 and is where the maintainerswent, so the docs were pointing readers at the dormant library.
Swaps the import in the
Actordocstring and in the three doc code examples, then updates theprose and links in the BeautifulSoup guide, the proxy management page, the uv guide, and the README.
The two renamed code examples and the renamed guide file keep their
01_/05_ordering prefixes.The guide keeps
id: beautifulsoup-httpx, so/docs/guides/beautifulsoup-httpxstill resolves.@docusaurus/plugin-client-redirectsis declared inwebsite/package.jsonbut registered nowhere,neither in
docusaurus.config.jsnor in the shared docs theme, so renaming the id would dead-linkthe old URL.
On the SDK's own dependencies: Crawlee and the Apify API client both default to
impit, andneither pulls in httpx or httpx2. Their HTTPX backends are optional extras that now resolve to
httpx2 (
crawlee[httpx]wantshttpx2 >= 2.12.0,apify-client[httpx2]wantshttpx2 >= 2.0.0).This change affects what the docs recommend to readers; the dependency tree is untouched.
One caveat worth knowing before merge: the guide says the BeautifulSoup Actor template ships both
libraries preinstalled, which holds once
actor-templatesmigrates too. Until then the explicitpip install beautifulsoup4 httpx2in the same section covers anyone starting from the template.✍️ Drafted by Claude Code