Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SafeWrapper ¶
type SafeWrapper struct {
// contains filtered or unexported fields
}
SafeWrapper is a http.Handler which wraps another http.Handler which could be later replaced by another one.
func New ¶
func New(handler http.Handler) *SafeWrapper
New returns a *SafeWrapper initialized with a handler
func (*SafeWrapper) ServeHTTP ¶
func (h *SafeWrapper) ServeHTTP(w http.ResponseWriter, r *http.Request)
ServeHTTP implements http.Handler
func (*SafeWrapper) SwapHandler ¶
func (h *SafeWrapper) SwapHandler(handler http.Handler)
SwapHandler swaps the handler
Click to show internal directories.
Click to hide internal directories.