Migrating to HTTPX2
tosh
190 points
81 comments
August 28, 2026
Related Discussions
Found 5 related stories in 66.1ms across 4,827 title embeddings via pgvector HNSW
- HTTPX2 – A next-generation HTTP client for Python tosh · 119 pts · August 28, 2026 · 67% similar
- How I use HTMX with Go gnabgib · 182 pts · July 14, 2026 · 49% similar
- Htmx 4.0 rmsaksida · 601 pts · August 28, 2026 · 49% similar
- Anthropic runs large-scale code migrations with Claude Code vinhnx · 31 pts · July 19, 2026 · 48% similar
- Show HN: Sx 2.0 – Share AI skills with your team through a Dropbox folder detkin · 31 pts · July 13, 2026 · 44% similar
Discussion Highlights (13 comments)
tosh
nb: operating system TLS trust store is used now (instead of certifi)
londons_explore
There seems to be a bunch of downsides mentioned... But what are the upsides of this change?
simonw
Anthropic made the same change a few weeks after OpenAI did: https://github.com/anthropics/anthropic-sdk-python/releases/... The problem with httpx as a dependency is that it's currently working towards a 1.0 release which will be full of breaking changes. The httpx2 project is essentially a fork that promises not to break the existing API, which makes it a more stable dependency to build against. I wrote a pretty long comment about my concerns for the breaking 1.0 version last year - https://github.com/encode/httpx/discussions/3344#discussionc... - in that comment I recommended the HTTPX project release their 1.0 as a package called httpx2 instead, but a year later we now have an httpx2 (released by a different maintainer) that keeps the old API.
fsuts
Why is everyone so slow to move to http3?
ZeroCool2u
The requests packages fundamental API is good enough and is now maintained by the PSF. I don't understand why OpenAI and Anthropic don't just throw some $$$ to the PSF for focused improvements and expansion of it.
ironqcold
Oh, well... It was bound to happen eventually. I suppose there must be some advantages to such a solution.
jklehm
Wonder if they evaluated httpx2 vs niquests: https://github.com/jawah/niquests
KaiserPro
Why would you want to use HTTPX2 over say requests?
delduca
Why this is in the frontpage?
ushakov
we have recently switched from httpx for the same reason but instead went with the Rust-based pyqwest (runs on Hyper) it has also a drop-in httpx-compatible transport so migration was easy and also it supports http2 trailers https://pyqwest.dev
karpetrosyan
Better migrate to https://zapros.dev from httpx maintainer
i574n
A network error occurred. Please check your connection and try again. If this issue persists please contact us through our help center at help.openai.com. yeah nice engineering clowns
shay_ker
i assume this is largely about the cybersecurity blitz, to ensure hot-path code is secure?