all method

Future<void> all(
  1. HttpHandler handler
)

A request handler for this route that matches all HTTP methods.

Implementation

Future<void> all(HttpHandler handler) async {
  final composedHandler = composeMiddleware(
      [...api.opts.middlewares, ..._middlewares, handler],
      HttpContext.fromCtx);

  var worker = ApiWorker(this, composedHandler, HttpMethod.values,
      security: security, client: _apiClient);

  await worker.start();
}