mirror of
https://github.com/kataras/iris.git
synced 2025-12-21 11:57:02 +00:00
add Pool and Handlers method helpers on the new ContextWrapper
This commit is contained in:
@@ -18,8 +18,8 @@ func FromStd(handler interface{}) context.Handler {
|
||||
switch h := handler.(type) {
|
||||
case context.Handler:
|
||||
return h
|
||||
case func(*context.Context):
|
||||
return h
|
||||
// case func(*context.Context):
|
||||
// return h
|
||||
case http.Handler:
|
||||
// handlerFunc.ServeHTTP(w,r)
|
||||
return func(ctx *context.Context) {
|
||||
|
||||
Reference in New Issue
Block a user