https://github.com/hashicorp/go-cleanhttp

Last synced: about 1 month ago

Repository metadata:


Owner metadata:


Committers metadata

Last synced: about 1 month ago

Total Commits: 21
Total Committers: 9
Avg Commits per committer: 2.333
Development Distribution Score (DDS): 0.429

Commits in past year: 0
Committers in past year: 0
Avg Commits per committer in past year: 0.0
Development Distribution Score (DDS) in past year: 0.0

Name Email Commits
Jeff Mitchell j****l@g****m 12
Calvin Leung Huang c****0@g****m 2
Brian Flad b****7@g****m 1
James Bardin j****n@g****m 1
Jeff Mitchell j****f@h****m 1
UKEME BASSEY u****y@h****m 1
hashicorp-copywrite[bot] n****y@h****m 1
vishalnayak v****v@g****m 1
hashicorp-copywrite[bot] 1****] 1

Issue and Pull Request metadata

Last synced: about 1 month ago


Package metadata

go: github.com/hashicorp/go-cleanhttp

Package cleanhttp offers convenience utilities for acquiring "clean" http.Transport and http.Client structs. Values set on http.DefaultClient and http.DefaultTransport affect all callers. This can have detrimental effects, esepcially in TLS contexts, where client or root certificates set to talk to multiple endpoints can end up displacing each other, leading to hard-to-debug issues. This package provides non-shared http.Client and http.Transport structs to ensure that the configuration will not be overwritten by other parts of the application or dependencies. The DefaultClient and DefaultTransport functions disable idle connections and keepalives. Without ensuring that idle connections are closed before garbage collection, short-term clients/transports can leak file descriptors, eventually leading to "too many open files" errors. If you will be connecting to the same hosts repeatedly from the same client, you can use DefaultPooledClient to receive a client that has connection pooling semantics similar to http.DefaultClient.

  • Homepage: https://github.com/hashicorp/go-cleanhttp
  • Documentation: https://pkg.go.dev/github.com/hashicorp/go-cleanhttp#section-documentation
  • Licenses: MPL-2.0
  • Latest release: v0.5.2 (published almost 4 years ago)
  • Last Synced: 2024-11-11T01:12:51.348Z (about 1 month ago)
  • Versions: 3
  • Dependent Packages: 12,592
  • Dependent Repositories: 78,667
  • Docker Downloads: 34,826,343,907
  • Rankings:
    • Docker downloads count: 0.013%
    • Dependent repos count: 0.015%
    • Dependent packages count: 0.017%
    • Average: 1.446%
    • Stargazers count: 3.117%
    • Forks count: 4.068%