Skip to main content
Http2ServerRequest.prototype.emit - node__http2.d.ts - Node documentation
method Http2ServerRequest.prototype.emit

Usage in Deno

```typescript import { Http2ServerRequest } from "node:node__http2.d.ts"; ```
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