handleAPIresponse: Do the right thing with the HTTP response

View source: R/api.R

handleAPIresponseR Documentation

Do the right thing with the HTTP response

Description

Do the right thing with the HTTP response

Usage

handleAPIresponse(response, special.statuses = list(), progress.handler = NULL)

Arguments

response

an httr response object

special.statuses

an optional named list of functions by status code.

progress.handler

an optional function to handle errors reported by a progress result. Default NULL prints the string message; other functions required to handle non-string messages in progress responses.

Value

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


crunch documentation built on Aug. 31, 2023, 1:07 a.m.