put static method

Future<HttpUtilResponse> put(
  1. String url, {
  2. String? body,
  3. List<int> expectedStatusCodes = const [200],
  4. Map<String, String> requestHeaders = const {},
  5. bool returnResponseAsBytes = false,
  6. OnProgressFunc? onProgress,
  7. OnProgressFunc? uploadOnProgress,
  8. Client? client,
})

Implementation

static Future<HttpUtilResponse> put(
  String url, {
  String? body,
  List<int> expectedStatusCodes = const [200],
  Map<String, String> requestHeaders = const {},
  bool returnResponseAsBytes = false,
  OnProgressFunc? onProgress,
  OnProgressFunc? uploadOnProgress,
  http.Client? client,
}) {
  return cancelablePut(
    url,
    body: body,
    expectedStatusCodes: expectedStatusCodes,
    requestHeaders: requestHeaders,
    returnResponseAsBytes: returnResponseAsBytes,
    onProgress: onProgress,
    uploadOnProgress: uploadOnProgress,
    client: client,
  ).value;
}