Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewProxyDialer ¶
func NewProxyDialer(dialer func(context.Context, string) (net.Conn, error)) func(context.Context, string) (net.Conn, error)
NewProxyDialer returns a dialer that connects to proxy first if necessary. The returned dialer checks if a proxy is necessary, dial to the proxy with the provided dialer, does HTTP CONNECT handshake and returns the connection.
Types ¶
Click to show internal directories.
Click to hide internal directories.