patch method

Future<void> patch(
  1. HttpHandler handler
)

A PATCH request handler for this route.

Implementation

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

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

  await worker.start();
}