Future<Response> handler(Request raw)

Source

Future<shelf.Response> handler(shelf.Request raw) async {
  Request request = new Request(raw, this);
  commandSync.send(new Command("Application.beforeRequestHandling", args: {
    'request': request,
  }));
  await this.router.accept(request);
  return await buildRawResponse(request.response);
}