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

Method HandleMany

mvc/controller.go:487–489  ·  view source on GitHub ↗

HandleMany like `Handle` but can register more than one path and HTTP method routes separated by whitespace on the same controller's method. Keep note that if the controller's method input arguments are path parameters dependencies they should match with each of the given paths. Just like `Party#Ha

(method, path, funcName string, middleware ...context.Handler)

Source from the content-addressed store, hash-verified

485//
486// HandleMany will override any routes of this "funcName".
487func (c *ControllerActivator) HandleMany(method, path, funcName string, middleware ...context.Handler) []*router.Route {
488 return c.handleMany(method, path, funcName, true, middleware...)
489}
490
491func (c *ControllerActivator) handleMany(method, path, funcName string, override bool, middleware ...context.Handler) []*router.Route {
492 if method == "" || path == "" || funcName == "" ||

Callers

nothing calls this directly

Calls 1

handleManyMethod · 0.95

Tested by

no test coverage detected