tripperware

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2019 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ProxyAuthHeader = "Proxy-Authorization"
)

Variables

This section is empty.

Functions

func Default

func Default(config *tls.Config) http.RoundTripper

func DefaultWithTransport

func DefaultWithTransport(transport *http.Transport, config *tls.Config) http.RoundTripper

func WrapForBackendAuth

func WrapForBackendAuth(parentTransport http.RoundTripper) http.RoundTripper

func WrapForDebug

func WrapForDebug(parentTransport http.RoundTripper) http.RoundTripper

WrapForDebug wraps tripperware with new one that signals kedge to use INFO logs for all DEBUG logs.

func WrapForMapping

func WrapForMapping(mapper kedge_map.Mapper, parentTransport http.RoundTripper) http.RoundTripper

func WrapForProxyAuth

func WrapForProxyAuth(parentTransport http.RoundTripper) http.RoundTripper

func WrapForRequestID

func WrapForRequestID(prefix string, parentTransport http.RoundTripper) http.RoundTripper

WrapForRequestID wraps tripperware with new one that appends unique request ID to "X-Kedge-Request-ID" header allowing better debug tracking.

func WrapForRouting

func WrapForRouting(parentTransport http.RoundTripper) http.RoundTripper

Types

This section is empty.

Jump to

Keyboard shortcuts

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