Skip to content
This repository has been archived by the owner on Jul 24, 2023. It is now read-only.

Latest commit

 

History

History
20 lines (17 loc) · 1.15 KB

README.md

File metadata and controls

20 lines (17 loc) · 1.15 KB

Network Error Logging reporter

This library implements a reporter for the Reporting and Network Error Logging (NEL) specifications. These specs allow site owners to instruct browsers and other user agents to collect and report on reliability information about the site. This gives you the same information as you'd get from your server logs, but collected from your clients. This client-side data set will include information about failed requests that never made it to your serving infrastructure.

This library provides a full working implementation of the specs, with one glaring omission: we don't handle any of the actual communication of sending and receiving HTTP requests. This lets you plug this library into any HTTP request library; we take of parsing and managing the reporting instructions for each origin, caching reports, and deciding which collector to send each report to. You provide an implementation of the ReportDeliverer interface to handle the actual HTTP communication using the library that you're integrating with.