Skip to main content
method Http2ServerRequest.prototype.emit
Http2ServerRequest.prototype.emit(
event: "aborted",
hadError: boolean,
code: number,
): boolean
Deprecated

Parameters

event: "aborted"
hadError: boolean
code: number

Return Type

boolean
Http2ServerRequest.prototype.emit(event: "close"): boolean
Deprecated

Parameters

event: "close"

Return Type

boolean
Http2ServerRequest.prototype.emit(
event: "data",
chunk: Buffer | string,
): boolean
Deprecated

Parameters

event: "data"
chunk: Buffer | string

Return Type

boolean
Http2ServerRequest.prototype.emit(event: "end"): boolean
Deprecated

Parameters

event: "end"

Return Type

boolean
Http2ServerRequest.prototype.emit(event: "readable"): boolean
Deprecated

Parameters

event: "readable"

Return Type

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

Parameters

event: "error"
err: Error

Return Type

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

Parameters

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

Return Type

boolean
Back to top