Versions in this module Expand all Collapse all v0 v0.0.1 Jul 16, 2020 Changes in this version + const Always + var Append = defaultRouter.Append + var BadGateway = http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { ... }) + var Clear = defaultRouter.Clear + var ListenAndServe = defaultRouter.ListenAndServe + var ListenAndServeTLS = defaultRouter.ListenAndServeTLS + var MatchFunc = defaultRouter.MatchFunc + var Never = BoolMatcher(false) + var Pop = defaultRouter.Pop + var PopN = defaultRouter.PopN + var Push = defaultRouter.Push + var Replace = defaultRouter.Replace + var Routes = defaultRouter.Routes + func Proxy(upstream string) http.Handler + func ProxyURL(origin *url.URL) http.Handler + func ServeHTTP(w http.ResponseWriter, r *http.Request) + func Static(path string) http.Handler + type BoolMatcher bool + func (m BoolMatcher) Match(r *http.Request) bool + type Handler interface + Handle func(http.Handler) Route + HandleFunc func(func(http.ResponseWriter, *http.Request)) Route + func Match(matcher Matcher) Handler + type HandlerFunc func(http.Handler) Route + func (f HandlerFunc) Handle(h http.Handler) Route + func (f HandlerFunc) HandleFunc(h func(http.ResponseWriter, *http.Request)) Route + type Matcher interface + Match func(*http.Request) bool + type MatcherFunc func(*http.Request) bool + func (f MatcherFunc) Match(r *http.Request) bool + type Route interface + type Router []Route + func (router *Router) Append(routes ...Route) + func (router *Router) Clear() + func (router *Router) ListenAndServe(addr string) error + func (router *Router) ListenAndServeTLS(addr, cert, key string) error + func (router *Router) Match(matcher Matcher) Handler + func (router *Router) MatchFunc(matchFunc func(*http.Request) bool) Handler + func (router *Router) Pop() Route + func (router *Router) PopN(n int) []Route + func (router *Router) Push(route Route) + func (router *Router) Replace(newRoutes []Route) []Route + func (router *Router) Routes() []Route + func (router *Router) ServeHTTP(w http.ResponseWriter, r *http.Request)