Skip to content

Terminable Middleware #147

@pjebs

Description

@pjebs

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions