(method string, r *routeMethod)
| 726 | } |
| 727 | |
| 728 | func (n *node) setHandler(method string, r *routeMethod) { |
| 729 | n.methods.set(method, r) |
| 730 | n.isHandler = n.methods.isHandler() |
| 731 | } |
| 732 | |
| 733 | // Note: notFoundRouteInfo exists to avoid allocations when setting 404 RouteInfo to Context |
| 734 | var notFoundRouteInfo = &RouteInfo{ |