MCPcopy
hub / github.com/gorilla/mux / Methods

Method Methods

mux.go:325–327  ·  mux.go::Router.Methods

Methods registers a new route with a matcher for HTTP methods. See Route.Methods().

(methods ...string)

Source from the content-addressed store, hash-verified

323// Methods registers a new route with a matcher for HTTP methods.
324// See Route.Methods().
325func (r *Router) Methods(methods ...string) *Route {
326 return r.NewRoute().Methods(methods...)
327}
328
329// Path registers a new route with a matcher for the URL path.
330// See Route.Path().

Callers 15

TestSubrouterMatchingFunction · 0.95
TestMiddlewareAddFunction · 0.45
TestMiddlewareFunction · 0.45
TestMiddlewareSubrouterFunction · 0.45
TestCORSMethodMiddlewareFunction · 0.45
TestMethodsFunction · 0.45
TestSubRouterFunction · 0.45

Calls 1

NewRouteMethod · 0.95

Tested by 15

TestSubrouterMatchingFunction · 0.76
TestMiddlewareAddFunction · 0.36
TestMiddlewareFunction · 0.36
TestMiddlewareSubrouterFunction · 0.36
TestCORSMethodMiddlewareFunction · 0.36
TestMethodsFunction · 0.36
TestSubRouterFunction · 0.36