Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AutoTransport = NewAutoTransport(newHTTPTransport(network.DefaultConnTimeout), h2cutil.DefaultTransport)
AutoTransport uses h2c for HTTP2 requests and falls back to `http.DefaultTransport` for all others
Functions ¶
func NewAutoTransport ¶ added in v0.5.2
func NewAutoTransport(v1 http.RoundTripper, v2 http.RoundTripper) http.RoundTripper
NewAutoTransport will use the appropriate transport for the request's HTTP protocol version
func NewRewinder ¶
func NewRewinder(rc io.ReadCloser) io.ReadCloser
NewRewinder wraps a single-use `ReadCloser` into a `ReadCloser` that can be read multiple times
func SetupHeaderPruning ¶
func SetupHeaderPruning(p *httputil.ReverseProxy)
SetupHeaderPruning will cause the http.ReverseProxy to not forward activator headers
Types ¶
Click to show internal directories.
Click to hide internal directories.