An R6 class to provide a lower-level interface to the query endpoint of the OSV API.
Details
Pageination is implemented via httr2::req_perform_iterative()
and a private method for
extracting tokens automatically. When initialized, the page_token is set to NULL
;
if a token is generated for large results the process is handled internally. The response object
will contain a list of all returned responses before any formatting occurred. The content field will
contain the list of vulnerabilities which may be further parsed into a table format.
Public fields
request
Request object made by
httr2
.content
Body contents of response from OSV API.
response
Response object returned from OSV API.
Methods
Method new()
Set the core request details for subsequent use when called in run()
method.
Usage
RosvQuery1$new(
commit = NULL,
version = NULL,
name = NULL,
ecosystem = NULL,
purl = NULL
)
Method parse()
Parse the contents returned into a tidier format. Can
use future
plans to help parallelize. Not all contents are parsed.
Method print()
Print basic details of query object to screen.