---
title: "httpx2 2.17.0 Breaking Changes on PyPI | Since.dev"
description: "What each httpx2 release removed, renamed or changed: 32 breaking changes in 8 versions on PyPI, each with its source."
canonical_url: https://since.dev/packages/pypi/httpx2
last_updated: 2026-12-04
---

# httpx2 breaking changes

httpx2 2.17.0 (November 30, 2026) is its newest release with breaking changes, 6 of them. The first: Cookie jar receives a trimmed request URL in httpx2 2.17.0. Every breaking API change we have recorded in httpx2 on PyPI: 32 breaking changes in 8 versions. Below, its 8 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `2.18.0`, released December 4, 2026. [Source repository](https://github.com/pydantic/httpx2)

Its 2.15.0 release drops [Python 3.10](https://since.dev/calendar/python/3.10.md). [Python end of life dates](https://since.dev/calendar/python.md).

- From [2.13.0](#v-2-13-0) to [2.17.0](#v-2-17-0): 26 breaking changes in 6 versions.

## httpx2 2.17.0 breaking changes

httpx2 2.17.0, released November 30, 2026: 6 breaking changes.

- **Behavior changed**  

The cookie jar gets the request URL without userinfo, query or fragment, and with at most 1024 bytes of path. Responses to long directory URLs now set and delete no cookies, and user:pass URLs share cookies with the plain URL. [github.com](https://github.com/pydantic/httpx2/releases/tag/v2.17.0)
- **Behavior changed** `AsyncHTTPTransport`  

When proxy is set, uds, local_address, retries and socket_options now take effect instead of being silently ignored. Code that passes them with a proxy will see different connections. [github.com](https://github.com/pydantic/httpx2/releases/tag/v2.17.0)
- **Behavior changed** `HTTPTransport`  

When proxy is set, uds, local_address, retries and socket_options now take effect instead of being silently ignored. Code that passes them with a proxy will see different connections. [github.com](https://github.com/pydantic/httpx2/releases/tag/v2.17.0)
- **Behavior changed** `Response.aiter_bytes`  

aiter_bytes no longer calls aiter_raw, so overriding aiter_raw no longer changes aiter_bytes, aiter_text, aiter_lines or aread. Code that relies on that override must change. [github.com](https://github.com/pydantic/httpx2/releases/tag/v2.17.0)
- **Behavior changed** `URL.host`  

URL.host returns the zone decoded (fe80::1%en0) instead of the %25 form. Code that compares or parses the host string must expect the decoded value. [github.com](https://github.com/pydantic/httpx2/releases/tag/v2.17.0)
- **Behavior changed** `URL.netloc`  

URL.netloc always writes the IPv6 zone as %25. Code that expects the bare zone form in netloc must change. [github.com](https://github.com/pydantic/httpx2/releases/tag/v2.17.0)

## httpx2 2.16.1 breaking changes

httpx2 2.16.1, released November 16, 2026: 14 breaking changes.

- **Behavior changed**  

The NO_PROXY entry \*.example.com now matches subdomains, so requests to them skip the proxy, as .example.com already did. Check proxy setups that relied on those requests going through the proxy. [github.com](https://github.com/pydantic/httpx2/releases/tag/v2.16.1)
- **Signature changed** `httpx2.AsyncBaseTransport.__aenter__`  

Was async def \_\_aenter\_\_(self: A) -> A; now async def \_\_aenter\_\_(self) -> Self. [pypi.org](https://pypi.org/project/httpx2/2.16.1/)
- **Signature changed** `httpx2.AsyncClient.__aenter__`  

Was async def \_\_aenter\_\_(self: U) -> U; now async def \_\_aenter\_\_(self) -> Self. [pypi.org](https://pypi.org/project/httpx2/2.16.1/)
- **Signature changed** `httpx2.AsyncHTTPTransport.__aenter__`  

Was async def \_\_aenter\_\_(self: A) -> A; now async def \_\_aenter\_\_(self) -> Self. [pypi.org](https://pypi.org/project/httpx2/2.16.1/)
- **Signature changed** `httpx2.BaseTransport.__enter__`  

Was def \_\_enter\_\_(self: T) -> T; now def \_\_enter\_\_(self) -> Self. [pypi.org](https://pypi.org/project/httpx2/2.16.1/)
- **Signature changed** `httpx2.Client.__enter__`  

Was def \_\_enter\_\_(self: T) -> T; now def \_\_enter\_\_(self) -> Self. [pypi.org](https://pypi.org/project/httpx2/2.16.1/)
- **Signature changed** `httpx2.codes.__new__`  

Was def \_\_new\_\_(cls, value: int, phrase: str = '') -> codes; now def \_\_new\_\_(cls, value: int, phrase: str = '') -> Self. [pypi.org](https://pypi.org/project/httpx2/2.16.1/)
- **Signature changed** `httpx2.Headers.__eq__`  

Was def \_\_eq\_\_(self, other: typing.Any) -> bool; now def \_\_eq\_\_(self, other: object) -> bool. [pypi.org](https://pypi.org/project/httpx2/2.16.1/)
- **Signature changed** `httpx2.Headers.__ior__`  

Was def \_\_ior\_\_(self, other: HeaderTypes) -> Headers; now def \_\_ior\_\_(self, other: HeaderTypes) -> Self. [pypi.org](https://pypi.org/project/httpx2/2.16.1/)
- **Signature changed** `httpx2.HTTPTransport.__enter__`  

Was def \_\_enter\_\_(self: T) -> T; now def \_\_enter\_\_(self) -> Self. [pypi.org](https://pypi.org/project/httpx2/2.16.1/)

And 4 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## httpx2 2.16.0 breaking changes

httpx2 2.16.0, released October 21, 2026: 2 breaking changes.

- **Behavior changed**  

The Cookie header lists cookies from different domains from the least to the most specific domain, instead of in the order the domains were added. Code that depends on the old cookie order must be updated. [github.com](https://github.com/pydantic/httpx2/releases/tag/v2.16.0)
- **Behavior changed** `client.cookies.jar.set_policy`  

A custom cookie policy set with set_policy() is now applied to outgoing requests, where it was previously ignored. Code that set a policy may see different cookies sent. [github.com](https://github.com/pydantic/httpx2/releases/tag/v2.16.0)

## httpx2 2.15.0 breaking changes

httpx2 2.15.0, released October 19, 2026: 1 breaking change.

- **Removed**  

httpx2 no longer supports Python 3.10; users on Python 3.10 must stay on 2.14.0 or upgrade Python to 3.11 or later. [github.com](https://github.com/pydantic/httpx2/releases/tag/v2.15.0)

## httpx2 2.14.0 breaking changes

httpx2 2.14.0, released October 18, 2026: 2 breaking changes.

- **Behavior changed** `mounts`  

A mounts key with an IP host followed by an invalid CIDR prefix now raises InvalidURL when the client is created. Fix any such keys. [github.com](https://github.com/pydantic/httpx2/releases/tag/v2.14.0)
- **Behavior changed** `NO_PROXY`  

Any address inside a listed CIDR range now bypasses the proxy, not only the network address itself. Check that proxy routing still matches your intent. [github.com](https://github.com/pydantic/httpx2/releases/tag/v2.14.0)

## httpx2 2.13.1 breaking changes

httpx2 2.13.1, released September 23, 2026: 1 breaking change.

- **Behavior changed**  

A file passed as content= now has its Content-Length computed from the bytes left after its current position, so requests with a file not at position zero send a different length. [github.com](https://github.com/pydantic/httpx2/releases/tag/v2.13.1)

## Older versions

2 older versions, each with its first changes. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

### httpx2 2.13.0 breaking changes

httpx2 2.13.0, released September 14, 2026: 4 breaking changes.

- **Removed** `httpx2.Limits.__eq__`  

Limits.\_\_eq\_\_ was removed in httpx2 2.13.0 [pypi.org](https://pypi.org/project/httpx2/2.13.0/)
- **Removed** `httpx2.Limits.__repr__`  

Limits.\_\_repr\_\_ was removed in httpx2 2.13.0 [pypi.org](https://pypi.org/project/httpx2/2.13.0/)

And 2 more in this version.

### httpx2 2.0.0b1 breaking changes

httpx2 2.0.0b1, released May 12, 2026: 2 breaking changes.

- **Renamed**  

The package is now httpx2, so import httpx2 replaces import httpx. The CLI, User-Agent header and logger are renamed to match. [github.com](https://github.com/pydantic/httpx2/blob/v2.0.0/CHANGELOG.md)
- **Renamed** `httpcore`  

Code that imports httpcore directly should switch to httpcore2. httpx2 pins a specific httpcore2 version. [github.com](https://github.com/pydantic/httpx2/blob/v2.0.0/CHANGELOG.md)

## Related packages

- [httpcore2](https://since.dev/packages/pypi/httpcore2.md)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#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.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
