To make debugging easier, httr2 includes the request that was used to generate every response. You can use this function to access it.
Arguments
- resp
A httr2 response object, created by
req_perform()
.
Examples
req <- request(example_url())
resp <- req_perform(req)
resp_request(resp)
#> <httr2_request>
#> GET http://127.0.0.1:41599/
#> Body: empty