MCPcopy
hub / github.com/nodejs/undici / onRequestUpgrade

Method onRequestUpgrade

lib/handler/deduplication-handler.js:158–160  ·  view source on GitHub ↗

* @param {import('../../types/dispatcher.d.ts').default.DispatchController} controller * @param {number} statusCode * @param {import('../../types/header.d.ts').IncomingHttpHeaders} headers * @param {Socket} socket

(controller, statusCode, headers, socket)

Source from the content-addressed store, hash-verified

156 * @param {Socket} socket
157 */
158 onRequestUpgrade (controller, statusCode, headers, socket) {
159 this.#primaryHandler.onRequestUpgrade?.(controller, statusCode, headers, socket)
160 }
161
162 /**
163 * @param {import('../../types/dispatcher.d.ts').default.DispatchController} controller

Callers

nothing calls this directly

Calls 1

onRequestUpgradeMethod · 0.65

Tested by

no test coverage detected