core/middleware library

Classes

MiddlewareHelper
Utility class for middleware operations.
Pipeline
Manages a sequence of Middleware functions and their execution order.

Typedefs

Middleware = Future<Response> Function(Context ctx, Next next)
A function used to intercept and process HTTP requests before they reach the final handler.
Next = Future<Response> Function()
A callback that invokes the next middleware in the pipeline.