copy_Request method

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

Request to copy the resource from sourcePath to destinationPath.

See:

  • copy for a complete operation executing this request.

Implementation

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

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