Documentation ¶ Index ¶ func NewHTTPProxy(u *url.URL, forward netproxy.Dialer) (netproxy.Dialer, error) type Conn func NewConn(nextDialer netproxy.Dialer, proxy *HttpProxy, addr string, network string) *Conn func (c *Conn) Close() error func (c *Conn) Read(b []byte) (n int, err error) func (c *Conn) SetDeadline(t time.Time) error func (c *Conn) SetReadDeadline(t time.Time) error func (c *Conn) SetWriteDeadline(t time.Time) error func (c *Conn) Write(b []byte) (n int, err error) type HttpProxy func (s *HttpProxy) Dial(network, addr string) (netproxy.Conn, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func NewHTTPProxy ¶ func NewHTTPProxy(u *url.URL, forward netproxy.Dialer) (netproxy.Dialer, error) Types ¶ type Conn ¶ type Conn struct { // contains filtered or unexported fields } func NewConn ¶ func NewConn(nextDialer netproxy.Dialer, proxy *HttpProxy, addr string, network string) *Conn func (*Conn) Close ¶ func (c *Conn) Close() error func (*Conn) Read ¶ func (c *Conn) Read(b []byte) (n int, err error) func (*Conn) SetDeadline ¶ func (c *Conn) SetDeadline(t time.Time) error func (*Conn) SetReadDeadline ¶ func (c *Conn) SetReadDeadline(t time.Time) error func (*Conn) SetWriteDeadline ¶ func (c *Conn) SetWriteDeadline(t time.Time) error func (*Conn) Write ¶ func (c *Conn) Write(b []byte) (n int, err error) type HttpProxy ¶ type HttpProxy struct { Addr string Host string Path string HaveAuth bool Username string Password string // contains filtered or unexported fields } HttpProxy is an HTTP/HTTPS proxy. func (*HttpProxy) Dial ¶ func (s *HttpProxy) Dial(network, addr string) (netproxy.Conn, error) Source Files ¶ View all Source files conn.go http.go Click to show internal directories. Click to hide internal directories.