retryablehttp

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RetryableHTTPClient

type RetryableHTTPClient struct {
	// contains filtered or unexported fields
}

func New

func New() *RetryableHTTPClient

func NewWithClient

func NewWithClient(c http.Client) *RetryableHTTPClient

func (*RetryableHTTPClient) Do

func (client *RetryableHTTPClient) Do(req *http.Request) (*http.Response, error)

func (*RetryableHTTPClient) Get

func (client *RetryableHTTPClient) Get(url string) (*http.Response, error)

func (*RetryableHTTPClient) StandardClient

func (client *RetryableHTTPClient) StandardClient() *http.Client

type RetryableRoundTripper

type RetryableRoundTripper struct {
	Client *RetryableHTTPClient
	// contains filtered or unexported fields
}

func (*RetryableRoundTripper) RoundTrip

func (rt *RetryableRoundTripper) RoundTrip(req *http.Request) (*http.Response, error)

RoundTrip executes a single HTTP transaction, but does not attempt to read the response, modify it, or close the body.

Jump to

Keyboard shortcuts

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