sitespeedio / chrome-har

Create HAR files from Chrome Debugging Protocol data
MIT License
148 stars 50 forks source link

Parse extra info events #71

Closed mikedijkstra closed 4 years ago

mikedijkstra commented 4 years ago

This PR will:

From my testing, the Network.requestWillBeSentExtraInfo event will always arrive after the Network.requestWillBeSent event, however the Network.responseReceivedExtraInfo can fire before the Network.responseReceived event, therefore we need to temporarily cache the extra info and parse it with the response to correctly attribute headers and cookies.

Closes #70

soulgalore commented 4 years ago

Thank you @mikedijkstra !