retryhttp

package
v0.8.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 26, 2023 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(timeout time.Duration, rt http.RoundTripper) *http.Client

NewClient returns http.Client with preconfigured retry feature.

Types

type NonRetryableError

type NonRetryableError struct{ Err error }

NonRetryableError signifies to the retryablehttp.Client that the request should not be retired.

func (NonRetryableError) Error

func (n NonRetryableError) Error() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL