enforce method
void
enforce(
- Middleware<
T> beforeMiddleware, - Middleware<
T> middleware, - Middleware<
T> afterMiddleware
Runs middleware before and after the main
Implementation
void enforce(
Middleware<T> beforeMiddleware,
Middleware<T> middleware,
Middleware<T> afterMiddleware,
) {
use(getEnforceMiddleware(beforeMiddleware, middleware, afterMiddleware));
}