restclient

package
v3.6.4 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2021 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

Functions

func InitRestyHook added in v3.6.2

func InitRestyHook(client *resty.Client)

func NewClient added in v3.6.0

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

func OutputMaps added in v3.6.2

func OutputMaps(info string, args map[string][]string)

OutputMaps Just debug a map

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