badgateway

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2017 License: MIT Imports: 8 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 Error added in v0.8.3

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

Custom error for pretty Sentry 'issues'

type RoundTripper

type RoundTripper struct {
	Transport *http.Transport
	// contains filtered or unexported fields
}

func NewRoundTripper

func NewRoundTripper(backend *url.URL, socket string, proxyHeadersTimeout time.Duration, developmentMode bool) *RoundTripper

func TestRoundTripper added in v0.7.9

func TestRoundTripper(backend *url.URL) *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