1
0
mirror of https://github.com/kataras/iris.git synced 2026-01-07 20:17:05 +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

@@ -234,6 +234,8 @@ type Party interface {
// Done appends to the very end, Handler(s) to the current Party's routes and child routes.
// The difference from .Use is that this/or these Handler(s) are being always running last.
Done(handlers ...context.Handler)
// MiddlewareExists reports whether the given handler exists in the middleware chain.
MiddlewareExists(handlerNameOrFunc any) bool
// RemoveHandler deletes a handler from begin and done handlers
// based on its name or the handler pc function.
//