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

Function onResponseStarted

deps/undici/src/lib/web/fetch/index.js:2236–2242  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2234 },
2235
2236 onResponseStarted () {
2237 // Set timingInfo’s final network-response start time to the coarsened shared current
2238 // time given fetchParams’s cross-origin isolated capability, immediately after the
2239 // user agent’s HTTP parser receives the first byte of the response (e.g., frame header
2240 // bytes for HTTP/2 or response status line for HTTP/1.x).
2241 timingInfo.finalNetworkResponseStartTime = coarsenedSharedCurrentTime(fetchParams.crossOriginIsolatedCapability)
2242 },
2243
2244 onResponseStart (controller, status, headers, statusText) {
2245 if (status < 200) {

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected