handle abstract method

Processes the incoming request and optionally invokes next to continue the middleware pipeline.

To pass execution down the chain, await next and return its resulting BloomResponse. To short-circuit execution (e.g. authentication rejection), return a BloomResponse directly without calling next.

Implementation

Future<BloomResponse?> handle(BloomRequest request, BloomNextFunction next);