move_Request method

Request move_Request(
  1. PathUri sourcePath,
  2. PathUri destinationPath, {
  3. bool overwrite = false,
})

Returns a request to move the resource from sourcePath to destinationPath.

overwrite determines if the request will fail if the destinationPath already exists.

See:

Implementation

http.Request move_Request(
  PathUri sourcePath,
  PathUri destinationPath, {
  bool overwrite = false,
}) {
  final request = http.Request('MOVE', _constructUri(sourcePath));

  _addCopyHeaders(
    request,
    destinationPath: destinationPath,
    overwrite: overwrite,
  );
  _addBaseHeaders(request);
  return request;
}