Write out a captured response
Arguments
- response
An
httr2_responseobject- file
String file path to write to
- simplify
logical: if
TRUE(default), JSON responses with status 200 and a supportedContent-Typewill be written as just the text of the response body. In all other cases, and whensimplifyisFALSE, thehttr2_responseobject will be written out to a .R file usingbase::dput().