MCPcopy Index your code
hub / github.com/labstack/echo / setHandler

Method setHandler

router.go:728–731  ·  view source on GitHub ↗
(method string, r *routeMethod)

Source from the content-addressed store, hash-verified

726}
727
728func (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
734var notFoundRouteInfo = &RouteInfo{

Callers 2

RemoveMethod · 0.95
insertMethod · 0.80

Calls 2

setMethod · 0.80
isHandlerMethod · 0.80

Tested by

no test coverage detected