An open API service providing repository metadata for many open source software ecosystems.

Package Usage: go: github.com/hashicorp/go-retryablehttp

Package retryablehttp provides a familiar HTTP client interface with automatic retries and exponential backoff. It is a thin wrapper over the standard net/http client library and exposes nearly the same public API. This makes retryablehttp very easy to drop into existing programs. retryablehttp performs automatic retries under certain conditions. Mainly, if an error is returned by the client (connection errors etc), or if a 500-range response is received, then a retry is invoked. Otherwise, the response is returned and left to the caller to interpret. Requests which take a request body should provide a non-nil function parameter. The best choice is to provide either a function satisfying ReaderFunc which provides multiple io.Readers in an efficient manner, a *bytes.Buffer (the underlying raw byte slice will be used) or a raw byte slice. As it is a reference type, and we will wrap it as needed by readers, we can efficiently re-use the request body without needing to copy it. If an io.Reader (such as a *bytes.Reader) is provided, the full body will be read prior to the first request, and will be efficiently re-used for any retries. ReadSeeker can be used, but some users have observed occasional data races between the net/http library and the Seek functionality of some implementations of ReadSeeker, so should be avoided if possible.
22 versions
Latest release: over 1 year ago
10,318 dependent packages

View more package details: https://packages.ecosystem.code.gouv.fr/registries/proxy.golang.org/packages/github.com/hashicorp/go-retryablehttp

Dependent Repos 7

E218662B/web-api-rest-en-go-lang

Last synced: 12 months ago - Pushed: 11 months ago

E21A429P/tp_web_rest

Last synced: 12 months ago - Pushed: 11 months ago

swh/infra/ci-cd/3rdparty/cert-manager-webhook-gandi

Last synced: 7 months ago - Pushed: 11 months ago

guillaume.perreal/coord

Last synced: 11 months ago - Pushed: 11 months ago

radiofrance/gitlab-ci-pipelines-exporter
Rewrite of https://github.com/mvisonneau/gitlab-ci-pipelines-exporter without Gitlab API requests

Size: 546 KB - Last synced: 7 days ago - Pushed: 7 days ago

signaux-faibles/wekan-alerter
wekan-alerter

Size: 44.9 KB - Last synced: 7 days ago - Pushed: over 2 years ago

web-et-numerique/factory/llle_project/cozy-stack
Fork of cozy-stack https://github.com/cozy/cozy-stack

Last synced: 7 months ago

InseeFrLab/utils
A collection of scripts that may have been used at some point :)

Size: 41 KB - Last synced: 7 days ago - Pushed: over 1 year ago