BloomNextFunction typedef
BloomNextFunction =
Future<BloomResponse> Function()
Next-handler callback invoked by middleware to pass control to the subsequent middleware or route handler in the pipeline.
Returns the BloomResponse produced by downstream handlers.
Example
final response = await next();
response.headers['X-Processed-By'] = 'BloomMiddleware';
return response;
Implementation
typedef BloomNextFunction = Future<BloomResponse> Function();