Skip to main content
method Http2ServerResponse.prototype.emit
Http2ServerResponse.prototype.emit(event: "close"): boolean
Deprecated

Parameters

event: "close"

Return Type

boolean
Http2ServerResponse.prototype.emit(event: "drain"): boolean
Deprecated

Parameters

event: "drain"

Return Type

boolean
Http2ServerResponse.prototype.emit(
event: "error",
error: Error,
): boolean
Deprecated

Parameters

event: "error"
error: Error

Return Type

boolean
Http2ServerResponse.prototype.emit(event: "finish"): boolean
Deprecated

Parameters

event: "finish"

Return Type

boolean
Http2ServerResponse.prototype.emit(
event: "pipe",
src: stream.Readable,
): boolean
Deprecated

Parameters

event: "pipe"
src: stream.Readable

Return Type

boolean
Http2ServerResponse.prototype.emit(
event: "unpipe",
src: stream.Readable,
): boolean
Deprecated

Parameters

event: "unpipe"
src: stream.Readable

Return Type

boolean
Http2ServerResponse.prototype.emit(
event: string | symbol,
...args: any[],
): boolean
Deprecated

Parameters

event: string | symbol
<span>...args</span>: any[]

Return Type

boolean
Back to top