Methods registers a new route with a matcher for HTTP methods. See Route.Methods().
(methods ...string)
| 323 | // Methods registers a new route with a matcher for HTTP methods. |
| 324 | // See Route.Methods(). |
| 325 | func (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(). |