move_Request method
Returns a request to move the resource from sourcePath
to destinationPath
.
overwrite
determines if the request will fail if the destinationPath
already exists.
See:
- http://www.webdav.org/specs/rfc2518.html#METHOD_MOVE for more information.
- move for a complete operation executing this request.
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;
}