Skip to main content
ClientHttp2Stream.prependListener - http2 - Node documentation
method ClientHttp2Stream.prependListener

Usage in Deno

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

Parameters

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

Return Type

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

Parameters

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

Return Type

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

Parameters

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

Return Type

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

Parameters

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

Return Type

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

Parameters

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

Return Type

this
Back to top