http

package
v1.11.1 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2016 License: MIT Imports: 18 Imported by: 6 modules, 13 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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
}

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

Jump to

Keyboard shortcuts

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