Handle registers a new route with a matcher for the URL path. See Route.Path() and Route.Handler().
(path string, handler http.Handler)
| 292 | // Handle registers a new route with a matcher for the URL path. |
| 293 | // See Route.Path() and Route.Handler(). |
| 294 | func (r *Router) Handle(path string, handler http.Handler) *Route { |
| 295 | return r.NewRoute().Path(path).Handler(handler) |
| 296 | } |
| 297 | |
| 298 | // HandleFunc registers a new route with a matcher for the URL path. |
| 299 | // See Route.Path() and Route.HandlerFunc(). |