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

Method isHandler

router.go:301–316  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

299}
300
301func (m *routeMethods) isHandler() bool {
302 return m.get != nil ||
303 m.post != nil ||
304 m.options != nil ||
305 m.put != nil ||
306 m.delete != nil ||
307 m.connect != nil ||
308 m.head != nil ||
309 m.patch != nil ||
310 m.propfind != nil ||
311 m.trace != nil ||
312 m.report != nil ||
313 m.any != nil ||
314 len(m.anyOther) != 0
315 // RouteNotFound/404 is not considered as a handler
316}
317
318// Routes returns all registered routes
319func (r *DefaultRouter) Routes() Routes {

Callers 2

newNodeFunction · 0.80
setHandlerMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected