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

Function onUpgrade

test/parallel/test-tls-over-http-tunnel.js:121–126  ·  view source on GitHub ↗
(res, socket, head)

Source from the content-addressed store, hash-verified

119 }
120
121 function onUpgrade(res, socket, head) {
122 // Hacky.
123 process.nextTick(() => {
124 onConnect(res, socket, head);
125 });
126 }
127
128 function onConnect(res, socket, header) {
129 assert.strictEqual(res.statusCode, 200);

Callers

nothing calls this directly

Calls 1

onConnectFunction · 0.85

Tested by

no test coverage detected