delete method

MethodPrepare delete(
  1. Handler handler, [
  2. List<Middleware>? pipeline,
  3. List<String>? acceptedContentType
])

Implementation

MethodPrepare delete(
  Handler handler, [
  List<Middleware>? pipeline,
  List<String>? acceptedContentType,
]) {
  var i = _path.methods['DELETE'] = PathMethod(
    [...parentPipeline, ...?pipeline],
    handler: handler,
    acceptedContentType: acceptedContentType ?? [],
  );
  return MethodPrepare(i);
}