Documentation ¶
Index ¶
- type HandlerWrapper
- type MWMux
- func (mmux *MWMux) Handle(pattern string, handler http.Handler)
- func (mmux *MWMux) HandleFunc(p string, handler func(http.ResponseWriter, *http.Request))
- func (mmux *MWMux) ListenAndServe(addr string) error
- func (mmux *MWMux) ServeHTTP(writer http.ResponseWriter, request *http.Request)
- func (mmux *MWMux) Use(path string, ...)
- type MiddlewareFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HandlerWrapper ¶
type HandlerWrapper struct {
// contains filtered or unexported fields
}
func (*HandlerWrapper) ServeHTTP ¶
func (handlerWrapper *HandlerWrapper) ServeHTTP(w http.ResponseWriter, r *http.Request)
type MWMux ¶ added in v0.5.0
type MWMux struct { Middlewares map[string]map[int]MiddlewareFunc // contains filtered or unexported fields }
var MMux *MWMux
func (*MWMux) HandleFunc ¶ added in v0.5.0
func (*MWMux) ListenAndServe ¶ added in v0.5.0
func (*MWMux) ServeHTTP ¶ added in v0.5.0
func (mmux *MWMux) ServeHTTP(writer http.ResponseWriter, request *http.Request)
func (*MWMux) Use ¶ added in v0.5.0
func (mmux *MWMux) Use( path string, handler func(http.ResponseWriter, *http.Request, http.HandlerFunc), )
Register a middleware on the MWMux
type MiddlewareFunc ¶
type MiddlewareFunc func(http.ResponseWriter, *http.Request, http.HandlerFunc)
Click to show internal directories.
Click to hide internal directories.