Documentation
¶
Index ¶
- func PatternToRegex(pattern string) *regexp.Regexp
- type HandlerFunc
- type Route
- type Router
- func (h *Router) Delete(pattern string, handler HandlerFunc) *Router
- func (h *Router) Get(pattern string, handler HandlerFunc) *Router
- func (h *Router) HandleFunc(methods []string, path string, handler func(*http.Session)) *Router
- func (h *Router) Handler(methods []string, path string, handler HandlerFunc) *Router
- func (h *Router) Options(pattern string, handler HandlerFunc) *Router
- func (h *Router) Patch(pattern string, handler HandlerFunc) *Router
- func (h *Router) Post(pattern string, handler HandlerFunc) *Router
- func (h *Router) Put(pattern string, handler HandlerFunc) *Router
- func (h *Router) Serve(session *http.Session)
- func (h *Router) ServeHTTP(w nethttp.ResponseWriter, r *nethttp.Request)
- func (h *Router) Static(filename string) HandlerFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PatternToRegex ¶
Types ¶
type HandlerFunc ¶
func (HandlerFunc) ServeHTTP ¶
func (f HandlerFunc) ServeHTTP(session *http.Session)
type Route ¶
type Route struct { Route *route.Route Handler HandlerFunc }
Click to show internal directories.
Click to hide internal directories.