* When a response is completed, emit Network.loadingFinished event. * https://chromedevtools.github.io/devtools-protocol/1-3/Network/#event-loadingFinished * @param {{ request: undici.Request, response: undici.Response }} event
({ request })
| 197 | * @param {{ request: undici.Request, response: undici.Response }} event |
| 198 | */ |
| 199 | function onClientResponseFinish({ request }) { |
| 200 | if (typeof request[kInspectorRequestId] !== 'string') { |
| 201 | return; |
| 202 | } |
| 203 | Network.loadingFinished({ |
| 204 | requestId: request[kInspectorRequestId], |
| 205 | timestamp: getMonotonicTime(), |
| 206 | }); |
| 207 | } |
| 208 | |
| 209 | // TODO: Move Network.webSocketCreated to the actual creation time of the WebSocket. |
| 210 | // undici:websocket:open fires when the connection is established, but this results |
nothing calls this directly
no test coverage detected