call method

void call(
  1. Request req,
  2. Response res,
  3. dynamic next
)

Implementation

void call(Request req, Response res, next) async {
  /// convert the incoming request body
  final _reqBody = await HttpBodyHandler.processRequest(req.ioRequest);

  /// it will be Map<String,dynamic>
  req.body = _reqBody.body;

  /// might be json or form
  req.bodyType = _reqBody.type;

  /// call the next guard or handler
  await next();
}