go-http-client VS go-cleanhttp

Compare go-http-client vs go-cleanhttp and see what are their differences.

go-http-client

An enhanced and lightweight http client for Golang (by bozd4g)

go-cleanhttp

Get easily stdlib HTTP client, which does not share any state with other clients. (by hashicorp)
Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
go-http-client go-cleanhttp
- 1
73 354
- 0.0%
2.7 0.0
3 months ago about 1 year ago
Go Go
MIT License Mozilla Public License 2.0
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

go-http-client

Posts with mentions or reviews of go-http-client. We have used some of these posts to build our list of alternatives and similar projects.

We haven't tracked posts mentioning go-http-client yet.
Tracking mentions began in Dec 2020.

go-cleanhttp

Posts with mentions or reviews of go-cleanhttp. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-06-09.
  • Rust without the async (hard) part
    3 projects | news.ycombinator.com | 9 Jun 2022
    Yes - `DefaultClient` in `net/http` is what the various package level methods operate on. This is constitutionally bad as global state that dependencies can mutate at will during init (or any other time), hence go-cleanhttp [1].

    [1]: https://github.com/hashicorp/go-cleanhttp

What are some alternatives?

When comparing go-http-client and go-cleanhttp you can also consider the following projects:

heimdall - An enhanced HTTP client for Go

contact - Retryable HTTP client in Go.

go-sse - Fully featured, spec-compliant HTML5 server-sent events library

req - Simple Go HTTP client with Black Magic

gev - 🚀Gev is a lightweight, fast non-blocking TCP network library / websocket server based on Reactor mode. Support custom protocols to quickly and easily build high-performance servers.

requests - HTTP requests for Gophers

httpx - Reliable HTTP for GoLang

httpretry - Enriches the standard go http client with retry functionality.

go-otelroundtripper - Go http.RoundTripper that emits open telemetry metrics. This helps you easily get metrics for all external APIs you interact with.