package
0.0.0-20200609095714-edc8019f93cc
Repository: https://github.com/mwitkow/go-httpwares.git
Documentation: pkg.go.dev

# Functions

BackoffLinear is very simple: it waits for a fixed period of time between calls.
DefaultResponseDiscarder is the default implementation that discards responses in order to try again.
DefaultRetriableDecider is the default implementation that retries only indempotent and safe requests (GET, OPTION, HEAD).
Enable turns on the retry logic for a given request, regardless of what the retry decider says.
Enable turns on the retry logic for a given request's context, regardless of what the retry decider says.
Tripperware is client side HTTP ware that retries the requests.
WithBackoff sets the `BackoffFunc `used to control time between retries.
WithDecider is a function that allows users to customize the logic that decides whether a request is retriable.
WithMax sets the maximum number of retries on this call, or this interceptor.
WithResponseDiscarder is a function that decides whether a given response should be discarded and another request attempted.

# Type aliases

BackoffFunc denotes a family of functions that controll the backoff duration between call retries.
No description provided by the author
RequestRetryDeciderFunc decides whether the given function is idempotent and safe or to retry.
ResponseDiscarderFunc decides when to discard a response and retry the request again (on true).