exec method

Future<Response> exec(
  1. Context ctx,
  2. Handler handler
)

Executes the pipeline for the given ctx, finishing with the handler.

Implementation

Future<Response> exec(Context ctx, Handler handler) {
  return compose(_middlewares, handler)(ctx);
}