Documentation
¶
Overview ¶
Package httpproxy provides an HTTP proxy implementation
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromURL ¶ added in v1.0.1
FromURL returns a proxy.Dialer given a URL specification and an underlying Dialer for it to make network requests.
func NewDialer ¶ added in v1.0.1
func NewDialer(address string, tlsConfig *tls.Config, pa *proxy.Auth, forward proxy.Dialer) (proxy.Dialer, error)
NewDialer returns a Dialer that makes HTTP connections to the given address with an optional username and password. If tlsConfig is provided, the Dialer will make HTTPS connecitons.
Types ¶
type Dialer ¶
type Dialer struct { // TLSConfig is the optional TLS configuration for HTTPS connections. TLSConfig *tls.Config // ProxyDial specifies the optional dial function for // establishing the transport connection. ProxyDial func(context.Context, string, string) (net.Conn, error) // Auth contains authentication information for the proxy. Auth auth.Authorization // contains filtered or unexported fields }
Dialer represents a proxy dialer
Click to show internal directories.
Click to hide internal directories.