http

package
v1.12.8 Latest Latest
Warning

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

Go to latest
Published: May 9, 2016 License: MIT Imports: 19 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 CertificateConfig added in v1.12.8

type CertificateConfig struct {
	Domain      string
	Certificate tls.Certificate
}

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
	Certs   []*CertificateConfig
}

func (*TlsConfig) GetConfig added in v1.12.8

func (this *TlsConfig) GetConfig() *tls.Config

Jump to

Keyboard shortcuts

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