logoalt Hacker News

Migrating to HTTPX2

190 pointsby toshyesterday at 11:51 AM81 commentsview on HN

Comments

simonwyesterday at 12:24 PM

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.

show 8 replies
jklehmyesterday at 2:36 PM

Wonder if they evaluated httpx2 vs niquests: https://github.com/jawah/niquests

show 3 replies
londons_exploreyesterday at 12:16 PM

There seems to be a bunch of downsides mentioned...

But what are the upsides of this change?

show 2 replies
i574nyesterday at 4:55 PM

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

delducayesterday at 3:50 PM

Why this is in the frontpage?

show 1 reply
toshyesterday at 11:52 AM

nb: operating system TLS trust store is used now (instead of certifi)

show 3 replies
fsutsyesterday at 1:49 PM

Why is everyone so slow to move to http3?

show 3 replies
ushakovyesterday at 4:18 PM

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

show 1 reply
ironqcoldyesterday at 2:30 PM

Oh, well... It was bound to happen eventually. I suppose there must be some advantages to such a solution.

KaiserProyesterday at 2:49 PM

Why would you want to use HTTPX2 over say requests?

show 5 replies
shay_keryesterday at 5:51 PM

i assume this is largely about the cybersecurity blitz, to ensure hot-path code is secure?

mendapitoday at 2:02 AM

[flagged]

preetham_ranguyesterday at 1:09 PM

[flagged]

pullrunyesterday at 5:56 PM

[dead]

igkougkousisyesterday at 3:32 PM

[flagged]

myshapeprotocolyesterday at 3:02 PM

[dead]

hno5b8kgpgyesterday at 2:04 PM

[dead]

CurbStomperyesterday at 1:35 PM

[dead]

ledoncoolyesterday at 12:17 PM

[flagged]

karpetrosyanyesterday at 4:34 PM

Better migrate to https://zapros.dev from httpx maintainer

show 1 reply
ZeroCool2uyesterday at 1:57 PM

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.

show 1 reply