put method

Future<Response> put(
  1. Object url, {
  2. Map<String, String>? headers,
  3. Object? body,
  4. Encoding? encoding,
})

Makes a PUT request to the specified url. The url can be either a String or a Uri object.

Implementation

Future<http.Response> put(
  Object url, {
  Map<String, String>? headers,
  Object? body,
  Encoding? encoding,
}) async {
  final uri = _toUri(url);
  return _makeRequest('PUT', uri,
      headers: headers, body: body, encoding: encoding);
}