8 ms·
Oh interested in the issues with http clients you have? I think they are great to use for being right in the standard library. Only complaint I have is defaults
by RSHEPP 2y ago
Oh interested in the issues with http clients you have? I think they are great to use for being right in the standard library. Only complaint I have is defaults for timeouts and such, but you make that mistake once and don't forget.
- materielle 2y agohttps://blog.carlana.net/post/2021/requests-golang-http-client/ 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.