Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var NoopModifier = ModifierFunc(func(*http.Response) error { return nil })
Functions ¶
Types ¶
type Modifier ¶
Modifier is the interface that allows to modify http.http.Response the Respond method.
func BackendServer ¶
func BackendServer() Modifier
BackendServer set "X-Backend-Server" header to the URL of the request
func CombineModifier ¶
CombineModifier combines multiple modifiers into a single one
type ModifierFunc ¶
ModifierFunc is a method that implements the Modifier interface.
type ProxyConfig ¶
func (*ProxyConfig) SetDefault ¶
func (cfg *ProxyConfig) SetDefault() *ProxyConfig
Click to show internal directories.
Click to hide internal directories.