Thin httr2 wrapper used by the ESPN MLB wrappers. Supports optional query
parameters, custom headers, and proxy routing. Proxy resolution order:
proxyargument (caller-supplied, highest precedence).getOption("baseballr.proxy")(session-level fallback – set once withoptions(baseballr.proxy = ...); ESPN wrappers call.retry_request()directly without..., so per-call overrides are not threaded through).http_proxy/https_proxy/no_proxyenv vars (read by libcurl automatically when no explicit proxy is supplied).
Usage
.retry_request(
url,
params = list(),
headers = NULL,
timeout = 60,
proxy = NULL
)Value
An httr2::response object.
Details
The proxy value accepts a single URL string ("http://host:port", passed
to httr2::req_proxy(url = )) or a named list spread as keyword args into
httr2::req_proxy() (url, port, username, password, auth).
