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

Method parseMethods

mvc/controller.go:406–412  ·  view source on GitHub ↗

register all available, exported methods to handlers if possible.

()

Source from the content-addressed store, hash-verified

404
405// register all available, exported methods to handlers if possible.
406func (c *ControllerActivator) parseMethods() {
407 n := c.Type.NumMethod()
408 for i := 0; i < n; i++ {
409 m := c.Type.Method(i)
410 c.parseMethod(m)
411 }
412}
413
414func (c *ControllerActivator) parseMethod(m reflect.Method) {
415 httpMethod, httpPath, err := parseMethod(c.app.Router.Macros(), m, c.isReservedMethod, c.app.customPathWordFunc)

Callers 1

activateMethod · 0.95

Calls 2

parseMethodMethod · 0.95
MethodMethod · 0.65

Tested by

no test coverage detected