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

Usage in Deno

import { Http2ServerResponse } from "node:http2";
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