Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( UseProxy = false Scheme = "socks5" Proxy = "127.0.0.1:7890" DefaultHttpClientConfig = &HttpClientConfig{ Proxy: nil, HttpTimeout: 2 * time.Second, MaxIdleConns: 20, } )
Functions ¶
Types ¶
type HttpClientConfig ¶
func (*HttpClientConfig) SetHttpTimeout ¶
func (c *HttpClientConfig) SetHttpTimeout(timeout time.Duration) *HttpClientConfig
func (*HttpClientConfig) SetMaxIdleConns ¶
func (c *HttpClientConfig) SetMaxIdleConns(max int) *HttpClientConfig
func (*HttpClientConfig) SetProxyUrl ¶
func (c *HttpClientConfig) SetProxyUrl(proxyUrl string) *HttpClientConfig
func (*HttpClientConfig) String ¶
func (c *HttpClientConfig) String() string
Click to show internal directories.
Click to hide internal directories.