mirror of
https://github.com/kataras/iris.git
synced 2025-12-20 03:17:04 +00:00
add Pool and Handlers method helpers on the new ContextWrapper
This commit is contained in:
@@ -160,7 +160,7 @@ func (r *Route) RemoveHandler(namesOrHandlers ...interface{}) (count int) {
|
||||
switch h := nameOrHandler.(type) {
|
||||
case string:
|
||||
handlerName = h
|
||||
case context.Handler, func(*context.Context):
|
||||
case context.Handler: //, func(*context.Context):
|
||||
handlerName = context.HandlerName(h)
|
||||
default:
|
||||
panic(fmt.Sprintf("remove handler: unexpected type of %T", h))
|
||||
|
||||
Reference in New Issue
Block a user