retryhttp

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	http.Client
	WithRetryAttempts(attempts uint) Client
	DoWithRetry(req *fasthttp.Request, resp *fasthttp.Response, attempts uint) error
}

func NewFastHttpRetryClient

func NewFastHttpRetryClient() Client

type FastHttpRetryClient

type FastHttpRetryClient struct {
	http.Client
	// contains filtered or unexported fields
}

func (*FastHttpRetryClient) Do

func (*FastHttpRetryClient) DoWithRetry

func (c *FastHttpRetryClient) DoWithRetry(req *fasthttp.Request, resp *fasthttp.Response, attempts uint) error

func (*FastHttpRetryClient) WithRetryAttempts

func (c *FastHttpRetryClient) WithRetryAttempts(attempts uint) Client

Jump to

Keyboard shortcuts

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