put<T> static method

Future<T> put<T>(
  1. String url, {
  2. Options? options,
  3. Object? data,
  4. Map<String, dynamic>? queryParameters,
})

put请求

Implementation

static Future<T> put<T>(
  String url, {
  Options? options,
  Object? data,
  Map<String, dynamic>? queryParameters,
}) async {
  return safeRequest<T>(
    url,
    options: options?.copyWith(method: 'PUT') ?? Options(method: 'PUT'),
    data: data,
    queryParameters: queryParameters,
  );
}