Documentation
¶
Index ¶
- func BuildProxyTransport(scheme, host, port, username, password string) *http.Transport
- func CustomDialer(proto, resolveSrv string, timeout time.Duration) *net.Dialer
- func CustomTransport(dialer *net.Dialer) *http.Transport
- func Default() *http.Client
- func New(opts ...ClientOption) *http.Client
- type ClientOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildProxyTransport ¶
func New ¶
func New(opts ...ClientOption) *http.Client
Types ¶
type ClientOption ¶
type ClientOption func(*clientOptions)
func WithTimeout ¶
func WithTimeout(s time.Duration) ClientOption
func WithTransport ¶
func WithTransport(s *http.Transport) ClientOption
Source Files
¶
- client.go
- option.go
- proxy_socks_transport.go
- sample.go
Click to show internal directories.
Click to hide internal directories.