- url
the URL address.
- convert
[default TRUE] logical value whether to attempt conversion
of the received raw bytes to a character vector. Set to FALSE
if
downloading non-text data.
- method
(optional) the HTTP method as a character string. Defaults to
'GET' if not specified, and could also be 'POST', 'PUT' etc.
- headers
(optional) a named character vector specifying the HTTP
request headers, for example:
c(Authorization = "Bearer APIKEY", "Content-Type" = "text/plain")
A non-character or non-named vector will be ignored.
- data
(optional) request data to be submitted. Must be a character
string or raw vector, and other objects are ignored. If a character vector,
only the first element is taken. When supplying binary data, the
appropriate 'Content-Type' header should be set to specify the binary
format.
- response
(optional) a character vector specifying the response headers
to return e.g. c("date", "server")
. These are case-insensitive and
will return NULL if not present. A non-character vector will be ignored.
- timeout
(optional) integer value in milliseconds after which the
transaction times out if not yet complete.
- tls
(optional) applicable to secure HTTPS sites only, a client TLS
Configuration object created by tls_config()
. If missing or NULL,
certificates are not validated.