* When a client request errors, emit Network.loadingFailed event. * https://chromedevtools.github.io/devtools-protocol/1-3/Network/#event-loadingFailed * @param {{ request: import('http').ClientRequest, error: any }} event
({ request, error })
| 99 | * @param {{ request: import('http').ClientRequest, error: any }} event |
| 100 | */ |
| 101 | function onClientRequestError({ request, error }) { |
| 102 | if (typeof request[kInspectorRequestId] !== 'string') { |
| 103 | return; |
| 104 | } |
| 105 | Network.loadingFailed({ |
| 106 | requestId: request[kInspectorRequestId], |
| 107 | timestamp: getMonotonicTime(), |
| 108 | type: kResourceType.Other, |
| 109 | errorText: error.message, |
| 110 | }); |
| 111 | } |
| 112 | |
| 113 | /** |
| 114 | * When response headers are received, emit Network.responseReceived event. |
nothing calls this directly
no test coverage detected
searching dependent graphs…