MCPcopy Index your code
hub / github.com/nodejs/node / onRequestUpgrade

Method onRequestUpgrade

deps/undici/undici.js:2990–2999  ·  view source on GitHub ↗
(statusCode, headers, socket)

Source from the content-addressed store, hash-verified

2988 }
2989 }
2990 onRequestUpgrade(statusCode, headers, socket) {
2991 assert(!this.aborted);
2992 assert(!this.completed);
2993 const controller = this[kController];
2994 if (controller) {
2995 controller.rawHeaders = headers;
2996 }
2997 const parsedHeaders = Array.isArray(headers) ? parseHeaders(headers) : headers;
2998 return this[kHandler].onRequestUpgrade?.(controller, statusCode, parsedHeaders, socket);
2999 }
3000 onResponseEnd(trailers) {
3001 this.onFinally();
3002 assert(!this.aborted);

Callers

nothing calls this directly

Calls 8

runInAsyncScopeMethod · 0.80
parseHeadersFunction · 0.70
toRawHeadersFunction · 0.70
removeSignalFunction · 0.70
onRequestUpgradeMethod · 0.65
abortMethod · 0.65
assertFunction · 0.50
onUpgradeMethod · 0.45

Tested by

no test coverage detected