google / nel-collector

Network Error Logging (NEL) collector
https://wicg.github.io/network-error-logging/
Apache License 2.0
38 stars 17 forks source link

Isolate logic for extracting ReportBatch from a http.Request. #38

Closed cstahl1 closed 5 years ago

cstahl1 commented 5 years ago

The logic for taking a web request and extracting a Nel Report is directly tied to the standard, but the pipeline is not. Isolating the two functionalities allows the extraction logic to be used as a library without requiring the pipeline logic.