mirror of
https://github.com/kataras/iris.git
synced 2025-12-18 02:17:05 +00:00
replace ioutil with io package and other minor improvements
This commit is contained in:
@@ -10,9 +10,10 @@ import (
|
||||
// FromStd converts native http.Handler & http.HandlerFunc to context.Handler.
|
||||
//
|
||||
// Supported form types:
|
||||
// .FromStd(h http.Handler)
|
||||
// .FromStd(func(w http.ResponseWriter, r *http.Request))
|
||||
// .FromStd(func(w http.ResponseWriter, r *http.Request, next http.HandlerFunc))
|
||||
//
|
||||
// .FromStd(h http.Handler)
|
||||
// .FromStd(func(w http.ResponseWriter, r *http.Request))
|
||||
// .FromStd(func(w http.ResponseWriter, r *http.Request, next http.HandlerFunc))
|
||||
func FromStd(handler interface{}) context.Handler {
|
||||
switch h := handler.(type) {
|
||||
case context.Handler:
|
||||
|
||||
Reference in New Issue
Block a user