delete<T> method

Future<Response<T>> delete<T>(
  1. String path,
  2. {dynamic data,
  3. Map<String, dynamic> queryParameters,
  4. Options options,
  5. CancelToken cancelToken}

Handy method to make http DELETE request, which is a alias of BaseDio.request.


Future<Response<T>> delete<T>(
  String path, {
  Map<String, dynamic> queryParameters,
  Options options,
  CancelToken cancelToken,
}) async {
  if (!loadAppAndLoadBalancerIfNeed())
    throw CustomError('未找到对应的服务[id=$serviceId]');
  return _loadBalancer?.run(
    data: data,
    queryParameters: queryParameters,
    options: checkOptions('DELETE', options),
    cancelToken: cancelToken,