fasthttp

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2026 License: Apache-2.0 Imports: 15 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) ProxyService added in v0.6.0

func (fhc FastHttpClient) ProxyService(serviceName, path 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