set_config function

Set (and reset) global httr configuration.

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.

Returns

invisibility, the old global config.

Examples

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

See Also

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

  • Maintainer: Hadley Wickham
  • License: MIT + file LICENSE
  • Last published: 2023-08-15