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

Method Handle

core/router/api_builder.go:540–542  ·  view source on GitHub ↗

Handle registers a route to this Party. if empty method is passed then handler(s) are being registered to all methods, same as .Any. Returns a *Route, app will throw any errors later on.

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

Source from the content-addressed store, hash-verified

538//
539// Returns a *Route, app will throw any errors later on.
540func (api *APIBuilder) Handle(method string, relativePath string, handlers ...context.Handler) *Route {
541 return api.handle(0, method, relativePath, handlers...)
542}
543
544// handle registers a full route to this Party.
545// Use Handle or Get, Post, Put, Delete and et.c. instead.

Callers 11

HandleManyMethod · 0.95
NoneMethod · 0.95
GetMethod · 0.95
PostMethod · 0.95
PutMethod · 0.95
DeleteMethod · 0.95
ConnectMethod · 0.95
HeadMethod · 0.95
OptionsMethod · 0.95
PatchMethod · 0.95
TraceMethod · 0.95

Calls 1

handleMethod · 0.95

Tested by

no test coverage detected