Note: This feature is available in Web Workers.
The Report
interface of the Reporting API represents a single report.
Reports can be accessed in a number of ways:
- Via the
ReportingObserver.takeRecords()
method — this returns all reports in an observer's report queue, and then empties the queue. - Via the
reports
parameter of the callback function passed into theReportingObserver()
constructor upon creation of a new observer instance. This contains the list of reports currently contained in the observer's report queue. - By sending requests to the endpoints defined via the
Reporting-Endpoints
HTTP header.