Documentation
¶
Index ¶
Constants ¶
View Source
const ( T3s = 3 T5s = 5 T10s = 10 T15s = 15 T30s = 30 T60s = 60 T90s = 90 T120s = 120 T180s = 180 T300s = 300 T3600s = 3600 T7200s = 7200 T14400s = 14400 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Options ¶
type Options struct {
// 连接池
MaxIdleConns int
MaxIdleConnsPerHost int
IdleConnTimeout time.Duration
TLSHandshakeTimeout time.Duration
Expect100Timeout time.Duration
DialTimeout time.Duration
KeepAlive time.Duration
// 重试
RetryCount int
RetryWaitMin time.Duration
RetryWaitMax time.Duration
// TLS(仅测试环境建议使用)
InsecureSkipVerify bool
// 通用 Header/UA
UserAgent string
CommonHeader map[string]string
// 需要的超时档位(秒)
TimeoutProfiles []int
}
Click to show internal directories.
Click to hide internal directories.