Http2Stream.on - Node documentation
method Http2Stream.on

Usage in Deno

import { type Http2Stream } from "node:http2";
Http2Stream.on(
event: "aborted",
listener: () => void,
): this

Parameters

event: "aborted"
listener: () => void

Return Type

this
Http2Stream.on(
event: "close",
listener: () => void,
): this

Parameters

event: "close"
listener: () => void

Return Type

this
Http2Stream.on(
event: "data",
listener: (chunk: Buffer | string) => void,
): this

Parameters

event: "data"
listener: (chunk: Buffer | string) => void

Return Type

this
Http2Stream.on(
event: "drain",
listener: () => void,
): this

Parameters

event: "drain"
listener: () => void

Return Type

this
Http2Stream.on(
event: "end",
listener: () => void,
): this

Parameters

event: "end"
listener: () => void

Return Type

this
Http2Stream.on(
event: "error",
listener: (err: Error) => void,
): this

Parameters

event: "error"
listener: (err: Error) => void

Return Type

this
Http2Stream.on(
event: "finish",
listener: () => void,
): this

Parameters

event: "finish"
listener: () => void

Return Type

this
Http2Stream.on(
event: "frameError",
listener: (
frameType: number,
errorCode: number,
) => void
,
): this

Parameters

event: "frameError"
listener: (
frameType: number,
errorCode: number,
) => void

Return Type

this
Http2Stream.on(
event: "pipe",
listener: (src: stream.Readable) => void,
): this

Parameters

event: "pipe"
listener: (src: stream.Readable) => void

Return Type

this
Http2Stream.on(
event: "unpipe",
listener: (src: stream.Readable) => void,
): this

Parameters

event: "unpipe"
listener: (src: stream.Readable) => void

Return Type

this
Http2Stream.on(
event: "streamClosed",
listener: (code: number) => void,
): this

Parameters

event: "streamClosed"
listener: (code: number) => void

Return Type

this
Http2Stream.on(
event: "timeout",
listener: () => void,
): this

Parameters

event: "timeout"
listener: () => void

Return Type

this
Http2Stream.on(
event: "trailers",
listener: (
flags: number,
) => void
,
): this

Parameters

event: "trailers"
listener: (
flags: number,
) => void

Return Type

this
Http2Stream.on(
event: "wantTrailers",
listener: () => void,
): this

Parameters

event: "wantTrailers"
listener: () => void

Return Type

this
Http2Stream.on(
event: string | symbol,
listener: (...args: any[]) => void,
): this

Parameters

event: string | symbol
listener: (...args: any[]) => void

Return Type

this