http

package
v0.0.0-...-6daa40f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 16, 2024 License: AGPL-3.0 Imports: 19 Imported by: 2

Documentation

Index

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL