Repository navigation
Update dependency httpx2 to v2.16.0 - #10
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
October 19, 2026 04:33
36c11f6 to
6295d22
Compare
renovate
Bot
force-pushed
the
renovate/httpx2-2.x
branch
from
October 21, 2026 08:59
6295d22 to
96e1004
Compare
renovate
Bot
force-pushed
the
renovate/httpx2-2.x
branch
from
October 30, 2026 08:06
96e1004 to
ce3be63
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.12.0β==2.16.0Release Notes
pydantic/httpx2 (httpx2)
v2.16.0Compare Source
Highlights
πͺ Faster requests with large cookie jars
Building the
Cookieheader no longer scans every cookie in the jar. The client reuses its jar instead of copying it on every request and redirect (#β1284), only looks up the domains that can match the request host, and skips the expired cookie sweep until a cookie is due (#β1285). With 1,000 cookies across 500 domains, building theCookieheader is about 18 times faster.Cookies from different domains are now sent from the least to the most specific domain, for example
.example.orgbeforesub.example.org, instead of in the order the domains were added. Cookies with longer paths still come first.httpx2
Changed
Cookieheader is about 18 times faster. Cookies from different domains are now sent from the least to the most specific domain (#β1285).Fixed
client.cookies.jar.set_policy()now applies to outgoing requests (#β1284).httpcore2
No changes since
2.15.1. Version bumped to stay in lockstep withhttpx2.Full Changelog: pydantic/httpx2@v2.15.1...v2.16.0
v2.15.1Compare Source
Highlights
π Flat CPU usage for long-lived clients on Linux
On Linux, the default SSL context is now configured once instead of on every handshake (#β1253). With OpenSSL older than 3.4, each handshake added a duplicate certificate lookup path, so CPU usage per request grew over the lifetime of a reused client. Certificate verification is unchanged, and Windows and macOS still use
truststore.httpx2
Fixed
httpcore2
Fixed
Full Changelog: pydantic/httpx2@v2.15.0...v2.15.1
v2.15.0Compare Source
Highlights
π Python 3.11+ required
httpx2andhttpcore2no longer support Python 3.10 (#β1274). There are no other changes in this release.httpx2
Removed
httpcore2
Removed
Full Changelog: pydantic/httpx2@v2.14.0...v2.15.0
v2.14.0Compare Source
Highlights
π CIDR ranges in
NO_PROXYNO_PROXYandmountsnow match IP CIDR ranges like192.168.0.0/16and[fe80::]/10, so any address in the range bypasses the proxy (#β1165). Bracketed IPv6 addresses like[::1]:8080are accepted, and unparseableNO_PROXYentries are ignored instead of failing client creation (#β1267).π FIPS-enforced Python support
httpx2now imports on FIPS-enforced Python builds withouthashlib.md5.DigestAuthraisesProtocolErroronly when the server asks for an unavailable algorithm (#β1130).π Sturdier connections and WebSocket shutdown
HTTP/2 reads no longer block when a server lowers
SETTINGS_MAX_CONCURRENT_STREAMSmid-flight (#β1217), and writing after a peer closes TLS withoutclose_notifyraisesWriteError(#β1263). Sync WebSocket sessions no longer hang on exit with a full event queue (#β1123), and ASGI WebSocket reads after app shutdown no longer leakanyioexceptions (#β1233).httpx2
Added
192.168.0.0/16and[fe80::]/10, inNO_PROXYandmounts. Requests to any address in the range now bypass the proxy; previously only the network address itself did (#β1165).[::1]and[::1]:8080, inNO_PROXY(#β1267).Changed
InvalidURLfor amountskey with an IP host followed by anything other than a valid CIDR prefix, likeall://10.0.0.0/33(#β1165).Fixed
NO_PROXYentries that cannot be parsed, instead of raisingInvalidURLwhen the client is created (#β1267).httpx2on FIPS-enforced Python builds withouthashlib.md5.DigestAuthraisesProtocolErrorwhen the server asks for an unavailable algorithm (#β1130).anyioexceptions (#β1233).httpcore2
Fixed
CONNECTand absolute-form proxy targets when the request sets thetargetextension (#β1262).SETTINGS_MAX_CONCURRENT_STREAMSwhile requests are in flight (#β1217).WriteErrorinstead ofanyio.EndOfStreamwhen writing after the peer closes a TLS connection withoutclose_notify(#β1263).Full Changelog: pydantic/httpx2@v2.13.1...v2.14.0
v2.13.1Compare Source
Highlights
π€ Accurate file upload lengths
Passing a file as
content=now calculatesContent-Lengthfrom its remaining bytes, respecting the current file position (#β1214).π Reliable proxy TLS and HTTP/2 negotiation
TLS hostname overrides now apply inside HTTP proxy tunnels without affecting the proxy's own TLS connection (#β1223). HTTP/2 is advertised first when enabled, and HTTP/1.1 is omitted when disabled (#β1155).
π§Ή Clean WebSocket shutdown
The sync WebSocket keepalive thread now exits cleanly when a ping races with connection shutdown (#β1228).
httpx2
Fixed
Content-Lengthfrom the remaining bytes when a file is passed ascontent=, respecting its current position (#β1214).httpcore2
Fixed
sni_hostnameextension for TLS inside HTTP proxy tunnels without applying it to the proxy's TLS connection (#β1223).Full Changelog: pydantic/httpx2@v2.13.0...v2.13.1
v2.13.0Compare Source
Highlights
π Reliable TLS verification controls
The CLI
--no-verifyflag now disables TLS certificate verification as intended, and--verifyprovides an explicit counterpart (#β1140, #β1186).π§Ή Safer async stream cleanup
Stopping a streamed response early no longer risks a nested async generator finalization error (#β1204).
httpx2
Changed
brotlicffi1.2.0.2 or later for thebrotliextra on non-CPython implementations in #β1179Fixed
--no-verifyCLI flag disable TLS certificate verification and add an explicit--verifycounterpart in #β1140 and #β1186httpcore2
Changed
trioextra in #β1179Fixed
Full Changelog: pydantic/httpx2@v2.12.0...v2.13.0
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.