fasthttp

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultTimeout = 10 * time.Second

	RequestTimeOut = 5 * time.Minute
)

Variables

This section is empty.

Functions

This section is empty.

Types

type FastHttpClient

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

func GetDefaultClient

func GetDefaultClient() FastHttpClient

func (FastHttpClient) CheckRetry

func (FastHttpClient) CheckRetry(err error, status int) bool

func (FastHttpClient) Exec

func (c FastHttpClient) Exec(req *request.Request) (r *gResp.Response, err error)

func (FastHttpClient) Proxy

func (c FastHttpClient) Proxy(targetUrl string, ctx *fiber.Ctx, timeout time.Duration) error

func (*FastHttpClient) SetClient

func (c *FastHttpClient) SetClient(client *fasthttp.Client)

Jump to

Keyboard shortcuts

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