Documentation
¶
Index ¶
- type BetterMux
- func (mux *BetterMux) Delete(pattern string, handler http.HandlerFunc)
- func (mux *BetterMux) Get(pattern string, handler http.HandlerFunc)
- func (mux *BetterMux) Handle(pattern string, handler http.Handler)
- func (mux *BetterMux) HandleFunc(pattern string, fn http.HandlerFunc)
- func (mux *BetterMux) Mount(path string, handler http.Handler)
- func (mux *BetterMux) Options(pattern string, handler http.HandlerFunc)
- func (mux *BetterMux) Patch(pattern string, handler http.HandlerFunc)
- func (mux *BetterMux) Post(pattern string, handler http.HandlerFunc)
- func (mux *BetterMux) Put(pattern string, handler http.HandlerFunc)
- func (mux *BetterMux) Route(path string, fn func(*BetterMux)) *BetterMux
- func (mux *BetterMux) ServeHTTP(w http.ResponseWriter, r *http.Request)
- func (mux *BetterMux) With(mfn func(http.Handler) http.Handler) *BetterMux
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BetterMux ¶
type BetterMux struct {
RealMux *http.ServeMux
ParentMux *BetterMux
Middleware func(http.Handler) http.Handler
}
func NewBetterMux ¶ added in v1.1.0
func NewBetterMux() *BetterMux
func NewBetterMuxWithServeMux ¶ added in v1.1.0
func (*BetterMux) HandleFunc ¶
func (mux *BetterMux) HandleFunc(pattern string, fn http.HandlerFunc)
Click to show internal directories.
Click to hide internal directories.