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

Method onRequestUpgrade

types/dispatcher.d.ts:220–220  ·  view source on GitHub ↗
(controller: DispatchController, statusCode: number, headers: IncomingHttpHeaders, socket: Duplex)

Source from the content-addressed store, hash-verified

218 export interface DispatchHandler {
219 onRequestStart?(controller: DispatchController, context: any): void;
220 onRequestUpgrade?(controller: DispatchController, statusCode: number, headers: IncomingHttpHeaders, socket: Duplex): void;
221 onResponseStart?(controller: DispatchController, statusCode: number, headers: IncomingHttpHeaders, statusMessage?: string): void;
222 onResponseData?(controller: DispatchController, chunk: Buffer): void;
223 onResponseEnd?(controller: DispatchController, trailers: IncomingHttpHeaders): void;

Callers 13

onUpgradeMethod · 0.65
onUpgradeResponseFunction · 0.65
onRequestUpgradeMethod · 0.65
onRequestUpgradeMethod · 0.65
onRequestUpgradeMethod · 0.65
onRequestUpgradeMethod · 0.65
onRequestUpgradeMethod · 0.65
onRequestUpgradeMethod · 0.65
onRequestUpgradeMethod · 0.65
onRequestUpgradeMethod · 0.65
onRequestUpgradeMethod · 0.65

Implementers 2

LegacyHandlerWrapperlib/dispatcher/dispatcher1-wrapper.js
Requestlib/core/request.js

Calls

no outgoing calls

Tested by

no test coverage detected