From ca097c96f97d8d2a5da09b8ca736c7e78a2467f6 Mon Sep 17 00:00:00 2001 From: Riccardo Magliocchetti Date: Wed, 10 Dec 2025 15:47:31 +0100 Subject: [PATCH 1/2] docs/ssl: fix typo (#3703) --- docs/advanced/ssl.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/advanced/ssl.md b/docs/advanced/ssl.md index f61e82ce..3813293f 100644 --- a/docs/advanced/ssl.md +++ b/docs/advanced/ssl.md @@ -29,7 +29,7 @@ import certifi import httpx import ssl -# This SSL context is equivelent to the default `verify=True`. +# This SSL context is equivalent to the default `verify=True`. ctx = ssl.create_default_context(cafile=certifi.where()) client = httpx.Client(verify=ctx) ``` From ae1b9f66238f75ced3ced5e4485408435de10768 Mon Sep 17 00:00:00 2001 From: Josh Cannon Date: Wed, 10 Dec 2025 08:58:48 -0600 Subject: [PATCH 2/2] Expose `FunctionAuth` in `__all__` (#3699) Co-authored-by: Kar Petrosyan <92274156+karpetrosyan@users.noreply.github.com> Co-authored-by: Kar Petrosyan --- CHANGELOG.md | 4 ++++ httpx/__init__.py | 1 + httpx/_auth.py | 2 +- 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 13bbfcdb..57fa44b8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). * Drop support for Python 3.8 +### Added + +* Expose `FunctionAuth` from the public API. (#3699) + ## 0.28.1 (6th December, 2024) * Fix SSL case where `verify=False` together with client side certificates. diff --git a/httpx/__init__.py b/httpx/__init__.py index e9addde0..63225040 100644 --- a/httpx/__init__.py +++ b/httpx/__init__.py @@ -50,6 +50,7 @@ __all__ = [ "DecodingError", "delete", "DigestAuth", + "FunctionAuth", "get", "head", "Headers", diff --git a/httpx/_auth.py b/httpx/_auth.py index b03971ab..9d24faed 100644 --- a/httpx/_auth.py +++ b/httpx/_auth.py @@ -16,7 +16,7 @@ if typing.TYPE_CHECKING: # pragma: no cover from hashlib import _Hash -__all__ = ["Auth", "BasicAuth", "DigestAuth", "NetRCAuth"] +__all__ = ["Auth", "BasicAuth", "DigestAuth", "FunctionAuth", "NetRCAuth"] class Auth: