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

Usage in Deno

```typescript import { Http2ServerResponse } from "node:node__http2.d.ts"; ```
Http2ServerResponse.prototype.emit(event: "close"): boolean

Parameters

event: "close"

Return Type

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

Parameters

event: "drain"

Return Type

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

Parameters

event: "error"
error: Error

Return Type

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

Parameters

event: "finish"

Return Type

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

Parameters

event: "pipe"
src: stream.Readable

Return Type

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

Parameters

event: "unpipe"
src: stream.Readable

Return Type

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

Parameters

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

Return Type

boolean