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"),
origin = pal::pkg_config_val("origin"),
max_tries = 3L
)
Arguments
- path
character(1)
NocoDB API endpoint path.- method
character(1)
HTTP request method. One of"GET"
,"CONNECT"
,"DELETE"
,"HEAD"
,"OPTIONS"
,"PATCH"
,"POST"
,"PUT"
or"TRACE"
.- origin
character(1)
NocoDB server origin.- max_tries
Maximum number of attempts to retry in case of an HTTP error. An integerish scalar.
Value
A modified HTTP request.