Skip to main content
Http2ServerRequest.prototype.emit - http2 - Node documentation
method Http2ServerRequest.prototype.emit

Usage in Deno

import { Http2ServerRequest } from "node:http2";
Http2ServerRequest.prototype.emit(
event: "aborted",
hadError: boolean,
code: number,
): boolean

Parameters

event: "aborted"
hadError: boolean
code: number

Return Type

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

Parameters

event: "close"

Return Type

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

Parameters

event: "data"
chunk: Buffer | string

Return Type

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

Parameters

event: "end"

Return Type

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

Parameters

event: "readable"

Return Type

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

Parameters

event: "error"
err: Error

Return Type

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

Parameters

event: string | symbol
...args: any[]

Return Type

boolean
Back to top