with_verbosity: 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)
Value
The result of evaluating code.
Arguments
code
Code to execture
verbosity
How much information to print? This is a wrapper
around req_verbose() that uses an integer to control verbosity:
0: no output
1: show headers
2: show headers and bodies
3: show headers, bodies, and curl status messages.
Use with_verbosity() to control the verbosity of requests that
you can't affect directly.