put method

Future<IsolateHttpResponse?> put(
  1. String url, {
  2. Map<String, String>? query,
  3. Map<String, String>? headers,
  4. Object? body,
  5. List<HttpFile>? files,
})

Sends an HTTP PUT request with the given headers and body to the given URL.

Implementation

Future<IsolateHttpResponse?> put(String url,
    {Map<String, String>? query,
    Map<String, String>? headers,
    Object? body,
    List<HttpFile>? files}) async {
  final _isolateHttpRequest = IsolateHttpRequest(url,
      method: HttpMethod.put,
      query: query,
      headers: headers,
      body: body,
      files: files);
  _logCurl(_isolateHttpRequest);
  return send(_isolateHttpRequest);
}