MCPcopy Create free account
hub / github.com/kataras/iris / isReservedMethod

Method isReservedMethod

mvc/controller.go:343–357  ·  view source on GitHub ↗

checks if a method is already registered.

(name string)

Source from the content-addressed store, hash-verified

341
342// checks if a method is already registered.
343func (c *ControllerActivator) isReservedMethod(name string) bool {
344 for methodName := range c.routes {
345 if methodName == name {
346 return true
347 }
348 }
349
350 for _, methodName := range c.skipMethodNames {
351 if methodName == name {
352 return true
353 }
354 }
355
356 return false
357}
358
359func (c *ControllerActivator) isReservedMethodHandler(method, path string) bool {
360 for _, routes := range c.routes {

Callers 1

handleManyMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected