Set (and reset) global httr configuration.

set_config(config, override = FALSE)

reset_config()

Arguments

config

Settings as generated by add_headers, set_cookies or authenticate.

override

if TRUE, ignore existing settings, if FALSE, combine new config with old.

Value

invisibility, the old global config.

See also

Other ways to set configuration: config, with_config

Examples

GET("http://google.com")
#> Response [http://www.google.com/] #> Date: 2017-08-16 14:13 #> Status: 200 #> Content-Type: text/html; charset=ISO-8859-1 #> Size: 10.5 kB #> <!doctype html><html itemscope="" itemtype="http://schema.org/WebPage" lang="... #> </style><style>body,td,a,p,.h{font-family:arial,sans-serif}body{margin:0;over... #> 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 c...
set_config(verbose()) GET("http://google.com")
#> Response [http://www.google.com/] #> Date: 2017-08-16 14:13 #> Status: 200 #> Content-Type: text/html; charset=ISO-8859-1 #> Size: 10.5 kB #> <!doctype html><html itemscope="" itemtype="http://schema.org/WebPage" lang="... #> </style><style>body,td,a,p,.h{font-family:arial,sans-serif}body{margin:0;over... #> 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 c...
reset_config() GET("http://google.com")
#> Response [http://www.google.com/] #> Date: 2017-08-16 14:13 #> Status: 200 #> Content-Type: text/html; charset=ISO-8859-1 #> Size: 10.5 kB #> <!doctype html><html itemscope="" itemtype="http://schema.org/WebPage" lang="... #> </style><style>body,td,a,p,.h{font-family:arial,sans-serif}body{margin:0;over... #> 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 c...