process method

Future<void> process(
  1. Request req,
  2. Next next
)

Wraps the rest of the chain.

The default implementation calls handle and then continues, which is what makes handle-only middleware work unchanged.

Implementation

Future<void> process(Request req, Next next) async {
  await handle(req);
  await next();
}