Skip to content

Introduce new SSLContext API & escalate deprecations. - #3319

Merged
lovelydinosaur merged 23 commits into
masterfrom
version-1.0
Oct 28, 2024
Merged

lovelydinosaur merged 23 commits into
masterfrom
version-1.0

Conversation

@lovelydinosaur

@lovelydinosaur lovelydinosaur commented Sep 26, 2024 •

Copy link
Copy Markdown
Member

Branch for Version 1.0, so that we can incrementally merge ongoing changes and figure out at what point we want to cut a release.

  • Add release notes.
    • Why choose HTTPX.
      • Sync + async support.
      • HTTP/1.1 + HTTP/2 support.
      • Command line client.
      • Strict typing.
      • Timeouts by default.
      • Usage as WSGI/ASGI test client.
      • Well defined transport API.
      • URL, Headers, QueryParams models.
      • Low-level API.
      • Roadmap for future improvements.
    • Document version changes.
    • Sponsorship callout. (Related... I need to conduct an end-of-month appraisal)
  • Increment version.
  • Merge changes.
    • Improved SSL configuration API.
    • Error when conflicting transport options passed.
    • Reduced dependency footprint.
    • Added NetworkOptions.
    • Deprecation for proxies escalated into removal.
    • Deprecation for app escalated into removal.
    • Removed undocumented raw_url interface.
    • Removed undocumented unnamed 4-tuple timeout.

Possible roadmap items...

  • Response timeouts.
  • Response max size.
  • Added routing.
  • Stricter typing for auth, proxy & timeout.
  • Stricter typing for default_encoding.
  • Stricter typing for params, headers & cookies.
  • Stricter typing for content, data, files.
  • Improved exception messaging for different network failure cases.

...

  • DNS caching.
  • Expose urlparse & friends.
  • Add URLLib3Transport.
  • Add AIOHttpTransport.
  • Built-in WebSocket support.
  • HTTP/3 support.

@lovelydinosaur lovelydinosaur mentioned this pull request Sep 26, 2024
1 of 2 tasks
@karpetrosyan

Copy link
Copy Markdown
Contributor

Add URLLib3Transport.

I have updated the urllib3 transport from the gist, and it seems ready to use as well as a good example of how transport can be implemented.

I've also worked a bit on AiohttpTransport, and hopefully, we'll see it soon. We could emphasize the possibility of using httpx as a Sans-IO library, capable of working with HTTP streams.

@lovelydinosaur lovelydinosaur added the 1.0 proposal Pull requests proposing 1.0 API changes label Sep 27, 2024
lovelydinosaur and others added 5 commits September 27, 2024 12:14
Co-authored-by: Tom Christie <tom@tomchristie.com>
Co-authored-by: T-256 <132141463+T-256@users.noreply.github.com>
Co-authored-by: T-256 <132141463+T-256@users.noreply.github.com>
@RobertCraigie

RobertCraigie commented Oct 10, 2024 •

Copy link
Copy Markdown
Contributor

Would be very excited to see built-in websocket support on the roadmap!

@lovelydinosaur

Copy link
Copy Markdown
Member Author

I'm reviewing this and thinking we ought to be aiming for an interim 0.28 release here...

  • Introduce @karpetrosyan's work on improving the ssl_context = ... API.
  • Continue to include deprecated cert/verify` parameters, so we can get this merged and released.

Comment thread .github/CONTRIBUTING.md Resolved
Comment thread CHANGELOG.md Resolved
Comment thread CHANGELOG.md Resolved
@lovelydinosaur

Copy link
Copy Markdown
Member Author

Since we're now deprecating rather than removing verify and cert, I'd like to merge this into mainline now.
We can take a call later on if we'll issue any interim 0.28+ releases, or if we'll move directly to 1.0.

Co-authored-by: T-256 <132141463+T-256@users.noreply.github.com>
@lovelydinosaur lovelydinosaur changed the title Version 1.0 Introduce new SSLContext API & escalate deprecations. Oct 28, 2024
Comment thread CHANGELOG.md Resolved
Comment thread docs/advanced/ssl.md Resolved
Comment thread CHANGELOG.md Resolved
Comment thread CHANGELOG.md Resolved
@lovelydinosaur
lovelydinosaur merged commit 8e36f2b into master Oct 28, 2024
@lovelydinosaur
lovelydinosaur deleted the version-1.0 branch October 28, 2024 14:30
samclearman pushed a commit to titanmsp/httpx that referenced this pull request Apr 26, 2025
Co-authored-by: Kar Petrosyan <92274156+karpetrosyan@users.noreply.github.com>
Co-authored-by: T-256 <132141463+T-256@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Iam-shyamrathore added a commit to Iam-shyamrathore/CodeIntent that referenced this pull request Nov 21, 2026
upstream.explain maps every change in a verdict to the commit and pull request between the two release commits that made it: candidate commits are those in the compare range that touched the symbol's file, and a commit counts as exact only when its diff does what the change says (removes the definition or parameter, adds the warning text, swaps the default). It records the PR, author, merge date, linked issues, the earlier PR that added the deprecation warning (found through blame, stepping past rewordings), and a later commit that restored the symbol. Quotes are sentences from the changelog, PR, issues and commit messages that name the change, and each is kept only if it is an exact substring of the fetched text; nothing is generated. GitHub responses are cached by URL (forever for SHA-addressed data, 24 hours with ETag revalidation otherwise) and the module stops cleanly at a rate-limit reserve or request budget.

Verified on real repositories: 19 of 19 changes mapped to the right PR, e.g. httpx proxies= -> encode/httpx#3319 (deprecated in #2879), itsdangerous.json -> pallets/itsdangerous#273, MarkupSafe soft_unicode -> pallets/markupsafe#261, urllib3 DEFAULT_CIPHERS -> urllib3/urllib3#2705, setuptools.command.test -> pypa/setuptools#4458 with the reversal in #4522 (72.1.0). scripts/explain_upstream.py prints the JSON.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Iam-shyamrathore added a commit to Iam-shyamrathore/CodeIntent that referenced this pull request Nov 21, 2026
… comment

evaluate() now explains every finding through upstream.explain once the release range is located, and stores the decisions on the verdict; a failed lookup becomes not_found with the error type, never a guess. The PR comment adds a "Why" line per upstream pull request, with the earlier deprecation PR and any later restoration, and one quote checked against GitHub, e.g. proxies= changed in encode/httpx#3319, deprecated earlier in #2879: "The deprecated `proxies` argument has now been removed."

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

1.0 proposal Pull requests proposing 1.0 API changes

Development

Successfully merging this pull request may close these issues.

5 participants