nano cURL - a minimalist http(s) client. A session encapsulates a connection,
along with all related parameters. A session may be used multiple times
to return data by repeatedly calling transact.
[default TRUE] logical value whether to attempt conversion of
the received raw bytes to a character vector. Supplying a non-logical
value will error.
method
(optional) the HTTP method (defaults to 'GET' if not specified).
headers
(optional) a named list or character vector specifying the
HTTP request headers e.g. list(`Content-Type` = "text/plain") or
c(Authorization = "Bearer APIKEY"). Supplying a non-named list or
vector will error.
data
(optional) the request data to be submitted.
response
(optional) a character vector or list specifying the response
headers to return e.g. c("date", "server") or list("Date", "Server").
These are case-insensitive and will return NULL if not present.
pem
(optional) applicable to secure HTTPS sites only. The path to a
file containing X.509 certificate(s) in PEM format, comprising the
certificate authority certificate chain (and revocation list if present).
If missing or NULL, certificates are not validated.