patch static method

Future<Response> patch(
  1. String url, {
  2. Map<String, String>? headers,
  3. int? port,
  4. dynamic json,
  5. dynamic body,
  6. Map<String, dynamic>? queryParameters,
  7. RequestBodyEncoding bodyEncoding = defaultBodyEncoding,
  8. int timeoutSeconds = defaultTimeoutSeconds,
  9. bool persistCookies = true,
  10. bool verify = true,
  11. bool withCredentials = false,
})

Implementation

static Future<Response> patch(
  String url, {
  Map<String, String>? headers,
  int? port,
  dynamic json,
  dynamic body,
  Map<String, dynamic>? queryParameters,
  RequestBodyEncoding bodyEncoding = defaultBodyEncoding,
  int timeoutSeconds = defaultTimeoutSeconds,
  bool persistCookies = true,
  bool verify = true,
  bool withCredentials = false,
}) {
  return _httpRequest(
    HttpMethod.PATCH,
    url,
    bodyEncoding: bodyEncoding,
    port: port,
    json: json,
    body: body,
    queryParameters: queryParameters,
    headers: headers ?? <String, String>{},
    timeoutSeconds: timeoutSeconds,
    persistCookies: persistCookies,
    verify: verify,
    withCredentials: withCredentials,
  );
}