with_verbosity {httr2} | R Documentation |
Temporarily set verbosity for all requests
Description
with_verbosity()
is useful for debugging httr2 code buried deep inside
another package because it allows you to see exactly what's been sent
and requested.
Usage
with_verbosity(code, verbosity = 1)
Arguments
code |
Code to execture |
verbosity |
How much information to print? This is a wrapper
around
Use |
Value
The result of evaluating code
.
Examples
fun <- function() {
request("https://httr2.r-lib.org") |> req_perform()
}
with_verbosity(fun())
[Package httr2 version 1.0.2 Index]