Learn R Programming

httr (version 1.4.4)

set_config: Set (and reset) global httr configuration.

Description

Set (and reset) global httr configuration.

Usage

set_config(config, override = FALSE)

reset_config()

Value

invisibility, the old global 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.

See Also

Other ways to set configuration: config(), with_config()

Examples

Run this code
GET("http://google.com")
set_config(verbose())
GET("http://google.com")
reset_config()
GET("http://google.com")

Run the code above in your browser using DataLab