Response: Response Class

ResponseR Documentation

Response Class

Description

The Response object is a generic object returned by any query function of one of the nbaR client classes.

Usage

Response

Format

An object of class R6ClassGenerator of length 24.

Details

Response Class

This class contains two fields (see also section 'Fields' below): The field content contains the query result parsed from the JSON response of the request. Depending on the query, this can be an object such as e.g. a ResultSet, or a Specimen or Taxon or a primitive data type. The field reponse is the actual response from the httr package that is used to perform the http request. It contains information such as the request and response headers, status code, URL, and the raw response.

Fields

content

Parsed response of the query call

response

Response object from package httr

See Also

https://cran.r-project.org/web/packages/httr/vignettes/quickstart.html for further details.


naturalis/nbaR documentation built on Nov. 12, 2023, 4:47 p.m.