do_request: performs the request

View source: R/request.R

do_requestR Documentation

performs the request

Description

You can test the authentication headers like so:

Usage

do_request(url, params, timeout_seconds)

Examples

## Not run: 
response <- httr::RETRY(
  "GET", "https://httpbin.org/headers",
  httr::authenticate("epidata", "fake_key")
)
content(response)$headers$Authorization == paste0(
  "Basic ",
  base64enc::base64encode(charToRaw("epidata:fake_key"))
)

## End(Not run)


epidatr documentation built on June 22, 2024, 9:15 a.m.