next method

  1. @internal
  2. @protected
Future next(
  1. Request req,
  2. Response resp
)

Implementation

@internal
@protected
Future next(Request req, Response resp) async {
  int index = (req.read(#reqMiddlewareI) ?? 0) as int;
  req.set(index + 1, #reqMiddlewareI);
  var result = await reqHandlers[index](req, resp, next);
  return result;
}