Make a handle

handle(url, ...)

Arguments

url

(character) A url. required.

...

options passed on to curl::new_handle()

Examples

handle("https://httpbin.org")
#> $url
#> [1] "https://httpbin.org"
#> 
#> $handle
#> <curl handle> (empty)
#> 

# handles - pass in your own handle
if (FALSE) {
h <- handle("https://httpbin.org")
(res <- HttpClient$new(handle = h))
out <- res$get("get")
}