restclient

package
v3.6.0 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2021 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// DefaultTimeout 默认超时时间
	DefaultTimeout = 10 * time.Second
)

Functions

func NewClient added in v3.6.0

func NewClient(proxy ...string) *resty.Client

func ResetResty

func ResetResty()

func ResetRestyRetryable added in v3.6.0

func ResetRestyRetryable()

func Resty

func Resty() *resty.Request

func RestyRetryable added in v3.6.0

func RestyRetryable() *resty.Request

func SetProxy added in v3.6.0

func SetProxy(client *http.Client, proxyString string) error

SetProxy Proxy client

Types

This section is empty.

Jump to

Keyboard shortcuts

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