Skip to main content
Http2Stream.emit - http2 - Node documentation
method Http2Stream.emit

Usage in Deno

import { type Http2Stream } from "node:http2";
Http2Stream.emit(event: "aborted"): boolean

Parameters

event: "aborted"

Return Type

boolean
Http2Stream.emit(event: "close"): boolean

Parameters

event: "close"

Return Type

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

Parameters

event: "data"
chunk: Buffer | string

Return Type

boolean
Http2Stream.emit(event: "drain"): boolean

Parameters

event: "drain"

Return Type

boolean
Http2Stream.emit(event: "end"): boolean

Parameters

event: "end"

Return Type

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

Parameters

event: "error"
err: Error

Return Type

boolean
Http2Stream.emit(event: "finish"): boolean

Parameters

event: "finish"

Return Type

boolean
Http2Stream.emit(
event: "frameError",
frameType: number,
errorCode: number,
): boolean

Parameters

event: "frameError"
frameType: number
errorCode: number

Return Type

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

Parameters

event: "pipe"
src: stream.Readable

Return Type

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

Parameters

event: "unpipe"
src: stream.Readable

Return Type

boolean
Http2Stream.emit(
event: "streamClosed",
code: number,
): boolean

Parameters

event: "streamClosed"
code: number

Return Type

boolean
Http2Stream.emit(event: "timeout"): boolean

Parameters

event: "timeout"

Return Type

boolean
Http2Stream.emit(
event: "trailers",
flags: number,
): boolean

Parameters

event: "trailers"
flags: number

Return Type

boolean
Http2Stream.emit(event: "wantTrailers"): boolean

Parameters

event: "wantTrailers"

Return Type

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

Parameters

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

Return Type

boolean