MCPcopy Create free account
hub / github.com/nodejs/node / onClientResponseFinish

Function onClientResponseFinish

lib/internal/inspector/network_undici.js:199–207  ·  view source on GitHub ↗

* 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 })

Source from the content-addressed store, hash-verified

197 * @param {{ request: undici.Request, response: undici.Response }} event
198 */
199function 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

Callers

nothing calls this directly

Calls 1

getMonotonicTimeFunction · 0.85

Tested by

no test coverage detected