-
Notifications
You must be signed in to change notification settings - Fork 579
Open
Description
I definitely think this should be implemented for Negroni.
Terminable middleware allows you to add code that runs AFTER the response has been fully served.
There is a subtle but crucial difference to adding code after next(rw, r)
.
It is also related (vaguely) to an issue I highlighted here: #138 (comment) where in the the recovery middleware, if you were to add a custom error handler, the handler wastes time from client's perspective.
Further Reading:
https://laravel.com/docs/5.3/middleware#terminable-middleware
alecha
Metadata
Metadata
Assignees
Labels
No labels