#
# SPDX-License-Identifier: Apache-2.0
-source("./R/util.R")
-
HttpRequest <- R6::R6Class(
"HttrRequest",
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,
if(toString(Sys.getenv("ARVADOS_API_HOST_INSECURE") == "TRUE"))
config$options = list(ssl_verifypeer = 0L)
- # times = 1 regular call + numberOfRetries
response <- httr::RETRY(verb, url = url, body = body,
config = config, times = retryTimes + 1)
},
{
query <- paste0(names(query), "=", query, collapse = "&")
- return(paste0("/?", query))
+ return(paste0("?", query))
}
return("")