Documentation ¶
Index ¶
- func CollectHeadersToLog(headerGroups ...[]string) []string
- func NewProxyResponseWriter(w http.ResponseWriter) *proxyResponseWriter
- func ReadResponseWithTimeout(r *bufio.Reader, req *http.Request, timeout time.Duration) (*http.Response, error)
- func TLSConfigWithServerName(newServerName string, template *tls.Config, isRouteService bool) *tls.Config
- type AddHeaderIfNotPresentRewriter
- type HeaderRewriter
- type ProxyResponseWriter
- type ReadResponseResult
- type RemoveHeaderRewriter
- type TimeoutError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CollectHeadersToLog ¶
CollectHeadersToLog returns an ordered slice of slices of headers to be logged and returns a unique, ordered slice of headers to be logged
func NewProxyResponseWriter ¶
func NewProxyResponseWriter(w http.ResponseWriter) *proxyResponseWriter
Types ¶
type AddHeaderIfNotPresentRewriter ¶
AddHeaderIfNotPresentRewriter: Adds headers only if they are not present in the current http.Header. The http.Header must be built using the method Add() to canonalize the keys
func (*AddHeaderIfNotPresentRewriter) RewriteHeader ¶
func (i *AddHeaderIfNotPresentRewriter) RewriteHeader(header http.Header)
type HeaderRewriter ¶
type ProxyResponseWriter ¶
type ReadResponseResult ¶
type ReadResponseResult struct {
// contains filtered or unexported fields
}
type RemoveHeaderRewriter ¶
RemoveHeaderRewriter: Removes any value associated to a header The http.Header must be built using the method Add() to canonalize the keys
func (*RemoveHeaderRewriter) RewriteHeader ¶
func (i *RemoveHeaderRewriter) RewriteHeader(header http.Header)
type TimeoutError ¶
type TimeoutError struct{}
func (TimeoutError) Error ¶
func (t TimeoutError) Error() string
Click to show internal directories.
Click to hide internal directories.