Make a HTTP request
MakeDataRobotRequest(
requestMethod,
routeString,
addUrl = TRUE,
returnRawResponse = TRUE,
as = "json",
simplifyDataFrame = TRUE,
body = NULL,
query = NULL,
timeout = DefaultHTTPTimeout,
encode = NULL,
followLocation = TRUE,
filename = NULL,
stopOnError = TRUE
)
function. A function from httr (e.g., `httr::GET`, `httr::POST`) to use.
character. The path to make the request on.
logical. Should the endpoint be prepended to the routeString? (Default TRUE).
logical. Whether to return the raw httr response object (as opposed to post processing and returning the content of that object, which is the default.)
character. What should the resulting data be interpreted as? (default "json").
Use "file" to download as a file (see filename
).
logical. Whether to invoke jsonlite::simplifyDataFrame
.
list. The body of the request for POST.
list. The query parameters for GET.
numeric. How many seconds before the request times out?
character. What should the body be encoded as for the JSON request?
logical. Should HTTR follow the location if provided? (Default TRUE).
character. The path of the file to download to, if it is a download request.
logical. If there is an error, should it be raised as a fatal R error? (Default TRUE).