GoogleChrome / lighthouse

Automated auditing, performance metrics, and best practices for the web.
https://developer.chrome.com/docs/lighthouse/overview/
Apache License 2.0
28.27k stars 9.35k forks source link

core(lantern): move NetworkRequest to lib/dependency-graph #15842

Closed connorjclark closed 7 months ago

connorjclark commented 7 months ago

ref #15841

NetworkRequest is used to model the network inside the Lantern graph and simulator. Instead of attempting to recreate a very similar interface that continues to meet the needs of all our use cases in Lighthouse, let's just move the entire NetworkRequest to lantern. Consumers of the library will need to create these on their own to make a graph, and how they do that (CDT logs or trace) is irrelevant.

We may possibly revisit the network interface in Lantern down the line.