Middleware

This feature was removed in version 2.0 in favour of using Event Listeners for the