Documentation ¶
Index ¶
- func Params(req *http.Request) httprouter.Params
- type Hitch
- func (h *Hitch) Delete(path string, handler http.Handler)
- func (h *Hitch) Get(path string, handler http.Handler)
- func (h *Hitch) Handle(method, path string, handler http.Handler)
- func (h *Hitch) HandleFunc(method, path string, handler func(http.ResponseWriter, *http.Request))
- func (h *Hitch) Handler() http.Handler
- func (h *Hitch) Next(handler http.Handler)
- func (h *Hitch) Options(path string, handler http.Handler)
- func (h *Hitch) Patch(path string, handler http.Handler)
- func (h *Hitch) Post(path string, handler http.Handler)
- func (h *Hitch) Put(path string, handler http.Handler)
- func (h *Hitch) Use(middleware ...func(http.Handler) http.Handler)
- func (h *Hitch) UseHandler(handler http.Handler)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Hitch ¶
type Hitch struct { Router *httprouter.Router // contains filtered or unexported fields }
Hitch ties httprouter, httpcontext, and middleware up in a bow.
func (*Hitch) HandleFunc ¶
HandleFunc registers a func handler for the given method and path.
func (*Hitch) UseHandler ¶
UseHandler registers an http.Handler as a middleware.
Click to show internal directories.
Click to hide internal directories.