forked from r-lib/httr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
set_config.Rd
35 lines (32 loc) · 824 Bytes
/
set_config.Rd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
% Generated by roxygen2 (4.0.2): do not edit by hand
\name{set_config}
\alias{reset_config}
\alias{set_config}
\title{Set (and reset) global httr configuration.}
\usage{
set_config(config, override = FALSE)
reset_config()
}
\arguments{
\item{config}{Settings as generated by \code{\link{add_headers}},
\code{\link{set_cookies}} or \code{\link{authenticate}}.}
\item{override}{if \code{TRUE}, ignore existing settings, if \code{FALSE},
combine new config with old.}
}
\value{
invisibility, the old global config.
}
\description{
Set (and reset) global httr configuration.
}
\examples{
GET("http://google.com")
set_config(verbose())
GET("http://google.com")
reset_config()
GET("http://google.com")
}
\seealso{
Other ways to set configuration: \code{\link{config}};
\code{\link{with_config}}, \code{\link{with_verbose}}
}