Open brekelj1 opened 4 years ago
What does it provide? Why do you think this library should be used?
This is because it defines a number of defaults for http.Client and http.Transport that are aligned with the standard go packages: https://github.com/hashicorp/go-cleanhttp/blob/master/cleanhttp.go#L32
(and of course we don't want to use go's global variables http.DefaultClient
and http.DefaultTransport
because other libraries may modify them, resulting in possible concurrency issues and strange behavior as described in cleanhttp's README.md)
See https://github.com/hashicorp/go-cleanhttp/blob/master/cleanhttp.go