handleAPIresponse: Do the right thing with the HTTP response

Description Usage Arguments Value

View source: R/api.R

Description

Do the right thing with the HTTP response

Usage

1
handleAPIresponse(response, special.statuses = list())

Arguments

response

an httr response object

special.statuses

an optional named list of functions by status code.

Value

The full HTTP response object, just the content, or any other status-specific action


crunch documentation built on April 6, 2021, 1:05 a.m.