Versions in this module Expand all Collapse all v0 v0.1.0 Oct 18, 2019 Changes in this version + func Param(req *http.Request, name string) string + func Path(ctx context.Context) string + func SubMux(m *Mux) + func WithHandler(ctx context.Context, handler http.Handler) context.Context + func WithMatcher(ctx context.Context, matcher Matcher) context.Context + func WithPath(ctx context.Context, path string) context.Context + type Matcher interface + Match func(*http.Request) *http.Request + Methods func() map[string]struct{} + Prefix func() string + type Mux struct + func New(opts ...MuxOption) *Mux + func NewSubMux(opts ...MuxOption) *Mux + func (m *Mux) Handle(matcher Matcher, handler http.Handler) + func (m *Mux) HandleFunc(matcher Matcher, handler func(http.ResponseWriter, *http.Request)) + func (m *Mux) ServeHTTP(res http.ResponseWriter, req *http.Request) + func (m *Mux) Use(middleware func(http.Handler) http.Handler) + type MuxOption func(*Mux) + func NotFound(h http.Handler) MuxOption + func NotFoundFunc(f http.HandlerFunc) MuxOption + type PathSpec struct + func Delete(spec string) *PathSpec + func Get(spec string) *PathSpec + func Head(spec string) *PathSpec + func NewPathSpec(spec string, opts ...PathSpecOption) *PathSpec + func Options(spec string) *PathSpec + func Patch(spec string) *PathSpec + func Post(spec string) *PathSpec + func Put(spec string) *PathSpec + func (p *PathSpec) Match(req *http.Request) *http.Request + func (p *PathSpec) Methods() map[string]struct{} + func (p *PathSpec) Prefix() string + func (p *PathSpec) String() string + type PathSpecOption func(*PathSpec) + func WithMethod(methods ...string) PathSpecOption + type Router interface + Handle func(Matcher, http.Handler) + Route func(*http.Request) *http.Request