httpcore2 breaking changes
httpcore2 2.16.1 (November 16, 2026) is its newest release with breaking changes, 10 of them. The first: HTTP/2 requests without a Host header now raise LocalProtocolError instead of IndexError in httpcore2 2.16.1. Every breaking API change we have recorded in httpcore2 on PyPI: 13 breaking changes in 4 versions. Below, its 4 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 2.18.0, released December 4, 2026. Source repository
Its 2.15.0 release drops Python 3.10. Python end of life dates.
httpcore2 2.16.1 breaking changes
- Behavior changed
An HTTP/2 request sent directly to an httpcore2 connection without a Host header now raises LocalProtocolError. Code that catches IndexError for this case must catch LocalProtocolError instead. github.com - Behavior changed
NO_PROXY
Requests to subdomains matched by a *.example.com entry in NO_PROXY now skip the proxy, where they previously went through it. Check proxy setups that rely on the old matching. github.com - Signature changed
httpcore2.AsyncConnectionPool.__aenter__
Was async def __aenter__(self) -> AsyncConnectionPool; now async def __aenter__(self) -> Self. pypi.org - Signature changed
httpcore2.AsyncHTTP11Connection.__aenter__
Was async def __aenter__(self) -> AsyncHTTP11Connection; now async def __aenter__(self) -> Self. pypi.org - Signature changed
httpcore2.AsyncHTTPConnection.__aenter__
Was async def __aenter__(self) -> AsyncHTTPConnection; now async def __aenter__(self) -> Self. pypi.org - Signature changed
httpcore2.ConnectionPool.__enter__
Was def __enter__(self) -> ConnectionPool; now def __enter__(self) -> Self. pypi.org - Signature changed
httpcore2.HTTP11Connection.__enter__
Was def __enter__(self) -> HTTP11Connection; now def __enter__(self) -> Self. pypi.org - Signature changed
httpcore2.HTTPConnection.__enter__
Was def __enter__(self) -> HTTPConnection; now def __enter__(self) -> Self. pypi.org - Signature changed
httpcore2.Origin.__eq__
Was def __eq__(self, other: typing.Any) -> bool; now def __eq__(self, other: object) -> bool. pypi.org - Signature changed
httpcore2.URL.__eq__
Was def __eq__(self, other: typing.Any) -> bool; now def __eq__(self, other: object) -> bool. pypi.org
httpcore2 2.15.1 breaking changes
- Signature changed
httpcore2.default_ssl_context
Was def default_ssl_context() -> ssl.SSLContext; now def default_ssl_context(*, _trust_env: bool = True) -> ssl.SSLContext. pypi.org
httpcore2 2.15.0 breaking changes
- Removed
httpcore2 no longer supports Python 3.10 and now requires Python 3.11 or later. Users on Python 3.10 must upgrade their interpreter before installing this release. github.com
httpcore2 2.13.0 breaking changes
- Configuration changed
The trio extra now requires Trio 0.34.0 or later. Users with an older Trio pinned must upgrade it to install the extra. github.com
Related packages
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.