Documentation ¶
Index ¶
- Constants
- func FetchParams(ctx context.Context) (ps tree.Params, ok bool)
- type Router
- func (r *Router) Delete(path string, h xrest.Handler)
- func (r *Router) Get(path string, h xrest.Handler)
- func (r *Router) Options(path string, h xrest.Handler)
- func (r *Router) Patch(path string, h xrest.Handler)
- func (r *Router) Plug(_ xrest.Handler) xrest.Handler
- func (r *Router) Post(path string, h xrest.Handler)
- func (r *Router) Put(path string, h xrest.Handler)
- func (r *Router) ServeHTTP(ctx context.Context, w http.ResponseWriter, req *http.Request)
- func (r *Router) SubRouter(prefix string) *SubRouter
- type SubRouter
- func (sr *SubRouter) Delete(path string, h xrest.Handler)
- func (sr *SubRouter) Get(path string, h xrest.Handler)
- func (sr *SubRouter) Options(path string, h xrest.Handler)
- func (sr *SubRouter) Patch(path string, h xrest.Handler)
- func (sr *SubRouter) Plug(plug ...xrest.Plugger)
- func (sr *SubRouter) Post(path string, h xrest.Handler)
- func (sr *SubRouter) Put(path string, h xrest.Handler)
- func (sr *SubRouter) SubRouter(prefix string) *SubRouter
Constants ¶
View Source
const ( GET = "GET" POST = "POST" PUT = "PUT" PATCH = "PATCH" OPTIONS = "OPTIONS" DELETE = "DELETE" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Router ¶
type Router struct { RedirectTrailingSlash bool RedirectFixedPath bool HandleMethodNotAllowed bool MethodNotAllowed xrest.Handler NotFound xrest.Handler // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.