Merge branch 'patch-1' of https://github.com/mr-c/arvados into mr-c-patch-1
[arvados.git] / sdk / R / R / HttpRequest.R
index d1100a2e5fe99ee5971d0c152a7103fe2b2b3391..07defca90f4c99e8be9f8a73f7412f398ab1a701 100644 (file)
@@ -13,10 +13,10 @@ HttpRequest <- R6::R6Class(
         validContentTypes = NULL,
         validVerbs = NULL,
 
-        initialize = function() 
+        initialize = function()
         {
             self$validContentTypes <- c("text", "raw")
-            self$validVerbs <- c("GET", "POST", "PUT", "DELETE", "PROPFIND", "MOVE")
+            self$validVerbs <- c("GET", "POST", "PUT", "DELETE", "PROPFIND", "MOVE", "COPY")
         },
 
         exec = function(verb, url, headers = NULL, body = NULL, queryParams = NULL,
@@ -60,7 +60,7 @@ HttpRequest <- R6::R6Class(
             return("")
         },
 
-        getConnection = function(url, headers, openMode) 
+        getConnection = function(url, headers, openMode)
         {
             h <- curl::new_handle()
             curl::handle_setheaders(h, .list = headers)