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

Method Any

core/router/api_builder.go:1555–1562  ·  view source on GitHub ↗

Any registers a route for ALL of the HTTP methods: Get Post Put Delete Head Patch Options Connect Trace

(relativePath string, handlers ...context.Handler)

Source from the content-addressed store, hash-verified

1553// Connect
1554// Trace
1555func (api *APIBuilder) Any(relativePath string, handlers ...context.Handler) (routes []*Route) {
1556 for _, m := range AllMethods {
1557 r := api.HandleMany(m, relativePath, handlers...)
1558 routes = append(routes, r...)
1559 }
1560
1561 return
1562}
1563
1564type (
1565 // ServerHandler is the interface which all server handlers should implement.

Callers 4

HandleManyMethod · 0.95
createRoutesMethod · 0.95
HandleServerMethod · 0.95
BenchmarkAPIBuilderFunction · 0.95

Calls 1

HandleManyMethod · 0.95

Tested by 1

BenchmarkAPIBuilderFunction · 0.76