Middleware typedef

Middleware = Future<Response> Function(Context ctx, Next next)

A function used to intercept and process HTTP requests before they reach the final handler.

Implementation

typedef Middleware = Future<Response> Function(Context ctx, Next next);