http

package
v1.12.2 Latest Latest
Warning

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

Go to latest
Published: May 2, 2016 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StripHopByHopHeaders added in v1.9.1

func StripHopByHopHeaders(request *http.Request)

@VisibleForTesting

Types

type ChanReader added in v1.9.1

type ChanReader struct {
	// contains filtered or unexported fields
}

func NewChanReader added in v1.9.1

func NewChanReader(stream v2io.Reader) *ChanReader

func (*ChanReader) Read added in v1.9.1

func (this *ChanReader) Read(b []byte) (int, error)

type Config added in v1.9.1

type Config struct {
	OwnHosts  []v2net.Address
	TlsConfig *TlsConfig
}

func (*Config) IsOwnHost added in v1.9.1

func (this *Config) IsOwnHost(host v2net.Address) bool

type HttpProxyServer

type HttpProxyServer struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func NewHttpProxyServer

func NewHttpProxyServer(config *Config, packetDispatcher dispatcher.PacketDispatcher) *HttpProxyServer

func (*HttpProxyServer) Close added in v1.9.1

func (this *HttpProxyServer) Close()

func (*HttpProxyServer) Listen

func (this *HttpProxyServer) Listen(port v2net.Port) error

func (*HttpProxyServer) Port added in v1.9.1

func (this *HttpProxyServer) Port() v2net.Port

type TlsConfig added in v1.12.1

type TlsConfig struct {
	Enabled  bool
	CertFile string
	KeyFile  string
}

Jump to

Keyboard shortcuts

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