retryhttp

package
v0.0.0-...-daae6f8 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrRetryable = errors.New("scrape: retryable error")

Functions

This section is empty.

Types

type Client

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

func New

func New() *Client

func NewWithTransport

func NewWithTransport(rt http.RoundTripper) *Client

func (*Client) Do

func (c *Client) Do(req *http.Request) (*http.Response, error)

Do executes the HTTP request with retry logic for retryable status codes. This implementation buffers and resets the body for each retry if req.Body is non-nil.

Jump to

Keyboard shortcuts

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