MiddlewareExtension extension
An extension on the Middleware class that provides additional functionality.
- on
Methods
-
handle(
Handler handler) → Handler -
Available on Middleware, provided by the MiddlewareExtension extension
Chains the current middleware with ahandler
function and returns a new middleware handler that applies the current middleware followed by the givenhandler
. -
next(
Middleware nextMiddleware) → Middleware -
Available on Middleware, provided by the MiddlewareExtension extension
Chains the currentmiddleware
with anextMiddleware
function and returns a new middleware handler that applies the current middleware followed by thenextMiddleware
.