Hacker News new | ask | show | jobs
by materielle 663 days ago
https://blog.carlana.net/post/2021/requests-golang-http-clie...

I don’t think that article discusses the timeout issue. So all the issues mentioned in that article, plus the timeout issue.

The end result is you have to explain to every Go developer that they can’t use the http client as-is.

Start searching for http client usages in GitHub. You’ll probably find more incorrect usages than correct ones.

It’s a solvable problem, you write a wrapper http client once and tell everyone to use it. But it’s a nasty foot gun to have to explain all this.