Skip to contents

Make a handle

Usage

handle(url, ...)

Arguments

url

(character) A url. required.

...

options passed on to curl::new_handle()

Examples

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

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