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

Method AddHandler

context/context.go:541–543  ·  view source on GitHub ↗

AddHandler can add handler(s) to the current request in serve-time, these handlers are not persistenced to the router. Router is calling this function to add the route's handler. If AddHandler called then the handlers will be inserted to the end of the already-defined route's handler.

(handlers ...Handler)

Source from the content-addressed store, hash-verified

539// If AddHandler called then the handlers will be inserted
540// to the end of the already-defined route's handler.
541func (ctx *Context) AddHandler(handlers ...Handler) {
542 ctx.handlers = append(ctx.handlers, handlers...)
543}
544
545// SetHandlers replaces all handlers with the new.
546func (ctx *Context) SetHandlers(handlers Handlers) {

Callers 1

NewConditionalHandlerFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected