Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow deprecated verify=<...> and cert=<...>. #3366

Merged
merged 2 commits into from
Oct 28, 2024

Conversation

tomchristie
Copy link
Member

@tomchristie tomchristie commented Oct 25, 2024

This pull requests retains but deprecates the verify=<...> and cert=<...> parameters, and the httpx.create_ssl_context() helper function.

  • verify=<...> becomes deprecated. Use ssl_context = httpx.SSLContext() instead.
  • cert=<...> becomes deprecated. Use ssl_context = httpx.SSLContext() instead.
  • create_ssl_context() becomes deprecated. Use ssl_context = httpx.SSLContext() instead.

The SSL_CERT_FILE and SSL_CERT_DIR environment variables are no longer supported by default.

I think this probably gets the branch to a point where we could release a 0.28 version introducing the deprecation gradually.

Thoughts?

@tomchristie tomchristie added the user-experience Ensuring that users have a good experience using the library label Oct 25, 2024
@tomchristie tomchristie requested a review from a team October 25, 2024 17:00
@tomchristie tomchristie merged commit ce270b9 into version-1.0 Oct 28, 2024
5 checks passed
@tomchristie tomchristie deleted the allow-deprecated-verify-cert branch October 28, 2024 13:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
user-experience Ensuring that users have a good experience using the library
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants