logoalt Hacker News

maccardtoday at 9:25 AM7 repliesview on HN

> Then I found out it was broken. I contributed a fix. The fix was ignored and there was never any release since November 2024.

This seems like a pretty good reason to fork to me.

> Sending HTTP requests is a basic capability in the modern world, the standard library should include a friendly, fully-featured, battle-tested, async-ready client. But not in Python,

Or Javascript (well node), or golang (http/net is _worse_ than urllib IMO), Rust , Java (UrlRequest is the same as python's), even dotnet's HttpClient is... fine.

Honestly the thing that consistently surprises me is that requests hasn't been standardised and brought into the standard library


Replies

francislavoietoday at 10:01 AM

What, Go's net/http is fantastic. I don't understand that take. Many servers are built on it because it's so fully featured out of the box.

show 1 reply
lenkitetoday at 9:31 AM

Your java knowledge is outdated. Java's JDK has a nice, modern HTTP Client https://docs.oracle.com/en/java/javase/11/docs/api/java.net....

show 1 reply
umvitoday at 10:23 AM

What's wrong with Go's? I've never had any issues with it. Go has some of the best http batteries included of any language

show 3 replies
localuser13today at 9:35 AM

>Honestly the thing that consistently surprises me is that requests hasn't been standardised and brought into the standard library

Instead, official documentation seems comfortable with recommending a third party package: https://docs.python.org/3/library/urllib.request.html#module...

>The Requests package is recommended for a higher-level HTTP client interface.

Which was fine when requests were the de-facto-standard only player in town, but at some point modern problems (async, http2) required modern solutions (httpx) and thus ecosystem fragmentation began.

show 1 reply
Kwpolskatoday at 9:51 AM

Node now supports the Fetch API.

pjc50today at 10:47 AM

> dotnet's HttpClient is... fine.

Yes, and it's in the standard library (System namespace). Being Microsoft they've if anything over-featured it.

show 1 reply
gjvctoday at 11:04 AM

requests is some janky layer onto of other janky layers. last thing you want in the stdlib.

it's called the STD lib for a reason...