badgateway

package
v0.7.5 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2016 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultDialer = &net.Dialer{
	Timeout:   30 * time.Second,
	KeepAlive: 30 * time.Second,
}

Values from http.DefaultTransport

View Source
var DefaultTransport = &http.Transport{
	Proxy:               http.ProxyFromEnvironment,
	Dial:                DefaultDialer.Dial,
	TLSHandshakeTimeout: 10 * time.Second,
}

Functions

This section is empty.

Types

type RoundTripper

type RoundTripper struct {
	Transport *http.Transport
}

func NewRoundTripper

func NewRoundTripper(socket string, proxyHeadersTimeout time.Duration) *RoundTripper

func (*RoundTripper) RoundTrip

func (t *RoundTripper) RoundTrip(r *http.Request) (res *http.Response, err error)

Jump to

Keyboard shortcuts

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