Repository navigation
Update dependency httpx2 to v2.17.0 - #22
Open
renovate[bot] wants to merge 1 commit into
Open
renovate[bot] wants to merge 1 commit into
renovate[bot] wants to merge 1 commit into
Conversation
renovate
Bot
force-pushed
the
renovate/httpx2-2.x
branch
from
November 16, 2026 21:40
ea3c3ec to
24f06d0
Compare
renovate
Bot
force-pushed
the
renovate/httpx2-2.x
branch
from
December 1, 2026 02:04
24f06d0 to
64b886f
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
==2.16.0→==2.17.0Warning
Some dependencies could not be looked up. Check the Dependency Dashboard for more information.
Release Notes
pydantic/httpx2 (httpx2)
v2.17.0Compare Source
⚡ Less CPU per request, and pools that scale
httpx2andhttpcore22.17.0 are a minor release. Requests cost less CPU, and the cost no longer climbs steeply with the number of pooled connections. Proxy options, IPv6 zones and cookies also change behaviour in a few places, so read those sections before you upgrade.pip install --upgrade httpx2==2.17.0httpcore2polled every idle HTTP/1.1 socket at the start and end of each request. It now checks only the connection it is about to reuse. A connection that the server closed stays in the pool until it is reused, its keep-alive expires, or it is evicted.🧭 Transport options now reach the proxy
uds,local_address,retriesandsocket_optionsapply to HTTP proxy connections (#1172).HTTPTransportandAsyncHTTPTransportsilently ignored them whenproxywas set. If you already pass them together with a proxy, they now take effect. For example,udssends the proxy connection over the Unix socket.retriesworks with SOCKS proxies (#1172). The TCP connection to the proxy is retried with the same backoff as a direct connection. SOCKS proxies still do not supportuds,local_addressandsocket_options.🌐 IPv6 zones and cookies
[fe80::1%25en0]and[fe80::1%en0]are the same host (#1361).URL.hostreturns the zone decoded, asfe80::1%en0, andstr(url)andURL.netlocalways write%25. A URL in the%25form failed to connect before. Cookies saved under a bare%en0URL no longer match after upgrading.Hostheader (#1360). A request tohttp://[fe80::1%en0]/sentHost: [fe80::1%en0], which servers such as Apache and lighttpd reject.http://user:pass@example.org/now shares cookies withhttp://example.org/.Cookieskeeps its policy (#1314). A policy on the client jar, such as one withblocked_domains, was ignored on requests that passedcookies=.🧹 Responses, timeouts and errors
RuntimeError: aclose(): asynchronous generator is already runningcould appear when the event loop shut down, or the garbage collector ran, with streamed responses still open.Response.aiter_bytes()no longer callsaiter_raw(), so overridingaiter_raw()no longer affectsaiter_bytes(),aiter_text(),aiter_lines()andaread().Response.aclose()can be retried (#1353). After a close that was cancelled or raised, the response was already marked as closed and the stream stayed open. A second call now closes it.response.elapsedis set for responses that arrive closed (#1376). It raisedRuntimeErrorwhen a transport returned a loaded response, such as aMockTransporthandler returningResponse(200, json=...).Timeoutrejects unsupported values when it is built (#1348). A value such as anhttpx.Timeoutnow raisesTypeErrorup front. Before, the request failed later, while connecting.UnicodeEncodeErrorfor a header value that cannot be encoded now ends with(header 'auth').📊 Benchmark against 2.16.2
GET1 KiBGET1 KiBGET1 KiBGET1 KiBGET100 KiBPOST1 KiBThese are medians of 7 rounds of
scripts/benchmark --mode readon local loopback (CPython 3.14, stdlib asyncio, macOS arm64). 2.17.0 was faster in every round of every scenario. They come from one machine, so read them as a direction, not a guarantee.Full changelog: v2.16.2...v2.17.0
v2.16.2Compare Source
🩹 Type aliases evaluate at runtime again
httpx2andhttpcore22.16.2 are a patch release with one fix. You will notice it if your code, or a library you depend on, uses the aliases inhttpx2._typesinside a runtime typing construct. On 2.16.1,import mistralai.clientfailed on Python 3.11 to 3.13.pip install --upgrade httpx2==2.16.2Optional[QueryParamTypes]andQueryParamTypes | Nonework again (#1346). In 2.16.1URLTypes,QueryParamTypes,HeaderTypes,CookieTypes,TimeoutTypes,ProxyTypesandAuthTypeswere strings.Optional[...]raisedSyntaxErrorforQueryParamTypesandHeaderTypes, and| NoneraisedTypeErrorfor all seven. They areUnion[...]objects again, as in 2.16.0.httpcore2has no changes. It is bumped to stay in lockstep withhttpx2.Full changelog: v2.16.1...v2.16.2
v2.16.1Compare Source
🚦 Concurrent HTTP/2 uploads no longer stall
httpx2andhttpcore22.16.1 are a patch release. Every change is a fix. You will notice it most if you run several HTTP/2 uploads over one connection, where requests could hang until the read timeout.pip install --upgrade httpx2==2.16.1WINDOW_UPDATEthat another task had already read, then block on a read the server had nothing to answer.httpcore2now rechecks the window after acquiring the read lock.Hostheader raisesLocalProtocolError(#1319). An HTTP/2 request sent directly to anhttpcore2connection withoutHostraisedIndexErrorbefore.🧭 Redirects, proxies and Digest auth
Locationreturns the response when redirects are not followed (#1064).httpx2raisedRemoteProtocolErrorand discarded the response. You now get the response with its headers, andresponse.next_requestisNone.*.example.cominNO_PROXYmatches subdomains (#1277). The entry never matched before, so those requests still went through the proxy. It now behaves like.example.com.Digest Realm="r", Nonce="n"raisedProtocolErrorbefore. Whitespace around=is allowed too.📦 Signed releases
uv publishuploads it. Releases since the move touv publishhad no provenance on PyPI.Full changelog: v2.16.0...v2.16.1
Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.