put static method

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

Implementation

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