Skip to contents

Wrapper to facilitate how a request should be processed based on a desired output.

Usage

dk_req_process(
  req,
  output = c("cleaned_json", "json", "response", "request"),
  objclass = NULL,
  ...
)

Arguments

req

A request.

output

One of "cleaned_json" (the default), "json", "response", or "request". If "cleaned_json" then tidyjson::spread_all() is used to parse the JSON body,

objclass

character. Name of class to assign to output object. Default is NULL, and no additional class is assigned. Used to facilitate parsing; See dk_resp_parse().

...

Other arguments passed to dk_req_perform()

Value

See output.