Skip to content

Retrieve the URL from a request.

Usage

req_get_url(req)

Arguments

req

A httr2 request object.

Value

A character string.

Examples

request("https://httpbin.org") |>
  req_url_path("/get") |>
  req_url_query(hello = "world") |>
  req_get_url()
#> [1] "https://httpbin.org/get?hello=world"