ClientHttp2Stream.addListener - Node documentation
method ClientHttp2Stream.addListener

Usage in Deno

import { type ClientHttp2Stream } from "node:http2";
ClientHttp2Stream.addListener(
event: "continue",
listener: () => { },
): this

Parameters

event: "continue"
listener: () => { }

Return Type

this
ClientHttp2Stream.addListener(
event: "headers",
listener: () => void,
): this

Parameters

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

Return Type

this
ClientHttp2Stream.addListener(
event: "push",
listener: (
flags: number,
) => void
,
): this

Parameters

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

Return Type

this
ClientHttp2Stream.addListener(
event: "response",
listener: () => void,
): this

Parameters

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

Return Type

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

Parameters

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

Return Type

this