Execute code with configuration set.
with_config(config = config(), expr, override = FALSE)
with_verbose(expr, ...)Settings as generated by add_headers(),
set_cookies() or authenticate().
code to execute under specified configuration
if TRUE, ignore existing settings, if FALSE,
combine new config with old.
Other arguments passed on to verbose()
Other ways to set configuration:
config(),
set_config()
with_config(verbose(), {
GET("http://had.co.nz")
GET("http://google.com")
})
#> Response [http://www.google.com/]
#> Date: 2025-11-12 19:17
#> Status: 200
#> Content-Type: text/html; charset=ISO-8859-1
#> Size: 17.7 kB
#> <!doctype html><html itemscope="" itemtype="http://schema.org/WebPage" lang="...
#> var g=this||self;function k(){return window.google&&window.google.kOPI||null}...
#> function r(a,b,d,c,h){var e="";b.search("&ei=")===-1&&(e="&ei="+n(c),b.search...
#> document.documentElement.addEventListener("submit",function(b){var a;if(a=b.t...
#> </style><style>body,td,a,p,.h{font-family:sans-serif}body{margin:0;overflow-y...
#> var g=this||self;var k,l=(k=g.mei)!=null?k:1,m,p=(m=g.diel)!=null?m:0,q,r=(q=...
#> "&bver="+b(w.bv);w.dpf&&(c+="&dpf="+b(w.dpf));var f=a.lineNumber;f!==void 0&&...
#> if (!iesg){document.f&&document.f.q.focus();document.gbqf&&document.gbqf.q.fo...
#> }
#> })();</script><div id="mngb"><div id=gbar><nobr><b class=gb1>Search</b> <a cl...
#> ...
# Or even easier:
with_verbose(GET("http://google.com"))
#> Response [http://www.google.com/]
#> Date: 2025-11-12 19:17
#> Status: 200
#> Content-Type: text/html; charset=ISO-8859-1
#> Size: 17.7 kB
#> <!doctype html><html itemscope="" itemtype="http://schema.org/WebPage" lang="...
#> var g=this||self;function k(){return window.google&&window.google.kOPI||null}...
#> function r(a,b,d,c,h){var e="";b.search("&ei=")===-1&&(e="&ei="+n(c),b.search...
#> document.documentElement.addEventListener("submit",function(b){var a;if(a=b.t...
#> </style><style>body,td,a,p,.h{font-family:sans-serif}body{margin:0;overflow-y...
#> var g=this||self;var k,l=(k=g.mei)!=null?k:1,m,p=(m=g.diel)!=null?m:0,q,r=(q=...
#> "&bver="+b(w.bv);w.dpf&&(c+="&dpf="+b(w.dpf));var f=a.lineNumber;f!==void 0&&...
#> if (!iesg){document.f&&document.f.q.focus();document.gbqf&&document.gbqf.q.fo...
#> }
#> })();</script><div id="mngb"><div id=gbar><nobr><b class=gb1>Search</b> <a cl...
#> ...