logoalt Hacker News

HTTPX2 – A next-generation HTTP client for Python

118 pointsby toshyesterday at 11:41 AM38 commentsview on HN

Comments

BoumTACyesterday at 2:54 PM

Noob question: what's the purpose of having so many request libraries? In JavaScript it's crazy, but in Python it's starting to feel the same: requests, httpx, httpx2...

From my perspective, HTTP requests have been mastered for years (decades?). What's the point of switching libraries? What's so extraordinary about the new HTTP library that makes requests look crap?

I understand that new protocols appear from time to time (like HTTP/2), but that's very rare. And if there are performance differences between two libraries, are they really that huge? Even if they are, 99% of people don't need that boost. What prevents someone from just improving the existing library's performance?

show 4 replies
jendersyesterday at 2:01 PM

I would been pleased to see this project named something else, maybe “httpx-ng” or “httpy” as I immediately link “http*2” with the obsolete http/2 protocol and not the httpx project.

show 5 replies
casper14yesterday at 2:03 PM

People should be aware how much worse HTTPX performs versus Aiohttp. For high scale systems it makes a massive difference

show 5 replies
cbsmithtoday at 3:35 AM

I thought we all moved over to Niquests and/or aiocquic and HTTP/3 these days.

nilteceduyesterday at 5:29 PM

Everytime someone is using httpx I always wonder why use that especially when niquests exists? I feel like it has always been such a better package

WalterGRyesterday at 1:43 PM

Also see the user’s other submission https://news.ycombinator.com/item?id=49477212

“OpenAI: Migrating to HTTPX2” (github.com/openai)

66 points | 1 hour ago | 50 comments

dethosyesterday at 8:30 PM

HTTPX2 isn't a great name for a fork (or at all). Just leads to more confusion.

Nevertheless, I'm curious about the pros and cons when comparing with "niquests".

vivzkestrelyesterday at 3:04 PM

aiohttp vs httpx2?

show 1 reply
x1colegalyesterday at 6:45 PM

Cool project bro

igkougkousisyesterday at 3:34 PM

[flagged]