Assembles the HTTP request structure that is common to all NocoDB API requests performed by this package.
Usage
req_basic(
path,
method = c("GET", "CONNECT", "DELETE", "HEAD", "OPTIONS", "PATCH", "POST", "PUT",
"TRACE"),
hostname = pal::pkg_config_val("hostname"),
max_tries = 3L
)
Arguments
- path
NocoDB API endpoint path. A character scalar.
- method
HTTP request method. One of
"GET"
,"CONNECT"
,"DELETE"
,"HEAD"
,"OPTIONS"
,"PATCH"
,"POST"
,"PUT"
or"TRACE"
.- hostname
NocoDB server hostname. A character scalar.
- max_tries
Maximum number of attempts to retry in case of an HTTP error. An integerish scalar.
Value
A modified HTTP request.