Retrieve the URL from a request.
Arguments
- req
A httr2 request object.
Examples
request("https://httpbin.org") |>
req_url_path("/get") |>
req_url_query(hello = "world") |>
req_get_url()
#> [1] "https://httpbin.org/get?hello=world"
Retrieve the URL from a request.
A httr2 request object.
request("https://httpbin.org") |>
req_url_path("/get") |>
req_url_query(hello = "world") |>
req_get_url()
#> [1] "https://httpbin.org/get?hello=world"