client

package
v0.9.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	ConnectionTimeout = "server.http.client.timeout"
)

Variables

This section is empty.

Functions

func GetClient

func GetClient(timeout time.Duration) *http.Client

Types

type NetHttpClient

type NetHttpClient struct {
}

func (NetHttpClient) CheckRetry

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

func (NetHttpClient) Exec

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

Jump to

Keyboard shortcuts

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