http

package
v1.9.1 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2016 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StripHopByHopHeaders

func StripHopByHopHeaders(request *http.Request)

@VisibleForTesting

Types

type ChanReader

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

func NewChanReader

func NewChanReader(stream <-chan *alloc.Buffer) *ChanReader

func (*ChanReader) Read

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

type Config

type Config struct {
	OwnHosts []v2net.Address
}

func (*Config) IsOwnHost

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

func (this *HttpProxyServer) Close()

func (*HttpProxyServer) Listen

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

func (*HttpProxyServer) Port

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

Jump to

Keyboard shortcuts

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