1
0
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:
Gerasimos (Makis) Maropoulos
2024-01-21 17:16:59 +02:00
parent 4eb7705fae
commit 66e3c26efe
8 changed files with 125 additions and 17 deletions

View File

@@ -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) {