imgwirehttp

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(options Options) *nethttp.Client

Types

type Options

type Options struct {
	Timeout    time.Duration
	MaxRetries int
	Backoff    time.Duration
	Transport  nethttp.RoundTripper
}

type RetryTransport

type RetryTransport struct {
	Base       nethttp.RoundTripper
	MaxRetries int
	Backoff    time.Duration
}

func (*RetryTransport) RoundTrip

func (t *RetryTransport) RoundTrip(request *nethttp.Request) (*nethttp.Response, error)

Jump to

Keyboard shortcuts

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