Open hadley opened 3 days ago
One correction to the code (as the body could be also of raw type).
if (is.null(req$body)) {
body <- ""
} else if (request$body$type == "raw") {
body <- req$body$data
} else {
body <-
req$body$data %>%
jsonlite::toJSON(auto_unbox = TRUE)
}
If curl > 7.75.0, use https://curl.se/libcurl/c/CURLOPT_AWS_SIGV4.html. Otherwise fall back to something based on this code from @kalimu: