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)
| 539 | // If AddHandler called then the handlers will be inserted |
| 540 | // to the end of the already-defined route's handler. |
| 541 | func (ctx *Context) AddHandler(handlers ...Handler) { |
| 542 | ctx.handlers = append(ctx.handlers, handlers...) |
| 543 | } |
| 544 | |
| 545 | // SetHandlers replaces all handlers with the new. |
| 546 | func (ctx *Context) SetHandlers(handlers Handlers) { |
no outgoing calls
no test coverage detected