Documentation ¶
Index ¶
- Variables
- func InitRestyHook(client *resty.Client)
- func NewClient(proxy ...string) *resty.Client
- func OutputMaps(info string, args map[string][]string)
- func ResetResty()
- func ResetRestyRetryable()
- func Resty() *resty.Request
- func RestyRetryable() *resty.Request
- func SetProxy(client *http.Client, proxyString string) error
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 OutputMaps ¶ added in v3.6.2
OutputMaps Just debug a map
func ResetResty ¶
func ResetResty()
func ResetRestyRetryable ¶ added in v3.6.0
func ResetRestyRetryable()
func RestyRetryable ¶ added in v3.6.0
func RestyRetryable() *resty.Request
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.