forked from r-lib/httr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
httr_options.Rd
44 lines (40 loc) · 1.32 KB
/
httr_options.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
35
36
37
38
39
40
41
42
43
% Generated by roxygen2 (4.0.2): do not edit by hand
\name{httr_options}
\alias{curl_docs}
\alias{httr_options}
\title{List available options.}
\usage{
httr_options(matches)
curl_docs(x)
}
\arguments{
\item{matches}{If not missing, this restricts the output so that either
the httr or curl option matches this regular expression.}
\item{x}{An option name (either short or full).}
}
\value{
A data frame with three columns:
\item{httr}{The short name used in httr}
\item{libcurl}{The full name used by libcurl}
\item{type}{The type of R object that the option accepts}
}
\description{
This function lists all available options for \code{\link{config}()}.
It provides both the short R name which you use with httr, and the longer
Curl name, which is useful when searching the documentation. \code{curl_doc}
opens a link to the libcurl documentation for an option in your browser.
}
\details{
RCurl and httr use slightly different names to libcurl: the initial
\code{CURLOPT_} is removed, all underscores are converted to periods and
the option is given in lower case. Thus "CURLOPT_SSLENGINE_DEFAULT"
becomes "sslengine.default".
}
\examples{
httr_options()
httr_options("post")
# Use curl_docs to read the curl documentation for each option.
# You can use either the httr or curl option name.
curl_docs("userpwd")
curl_docs("CURLOPT_USERPWD")
}