mirror of
https://github.com/kataras/iris.git
synced 2026-01-09 04:51:56 +00:00
new app.MiddlewareExists method
This commit is contained in:
@@ -13,6 +13,10 @@ import (
|
||||
"golang.org/x/exp/constraints"
|
||||
)
|
||||
|
||||
func init() {
|
||||
context.SetHandlerName("iris/x/errors.RecoveryHandler.*", "iris.errors.recover")
|
||||
}
|
||||
|
||||
// RecoveryHandler is a middleware which recovers from panics and sends an appropriate error response
|
||||
// to the logger and the client.
|
||||
func RecoveryHandler(ctx *context.Context) {
|
||||
|
||||
Reference in New Issue
Block a user