1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-17 18:07:01 +00:00

add Pool and Handlers method helpers on the new ContextWrapper

This commit is contained in:
Gerasimos (Makis) Maropoulos
2023-11-02 15:24:45 +02:00
parent 4772177fef
commit ec69670edc
6 changed files with 32 additions and 9 deletions

View File

@@ -1388,7 +1388,7 @@ func (api *APIBuilder) RemoveHandler(namesOrHandlers ...interface{}) Party {
switch h := nameOrHandler.(type) {
case string:
handlerName = h
case context.Handler, func(*context.Context):
case context.Handler: //, func(*context.Context):
handlerName = context.HandlerName(h)
case *int:
counter = h