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

Usage in Deno

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

Parameters

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

Return Type

this
Http2Session.prependListener(
event: "error",
listener: (err: Error) => void,
): this

Parameters

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

Return Type

this
Http2Session.prependListener(
event: "frameError",
listener: (
frameType: number,
errorCode: number,
streamID: number,
) => void
,
): this

Parameters

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

Return Type

this
Http2Session.prependListener(
event: "goaway",
listener: (
errorCode: number,
lastStreamID: number,
opaqueData?: Buffer,
) => void
,
): this

Parameters

event: "goaway"
listener: (
errorCode: number,
lastStreamID: number,
opaqueData?: Buffer,
) => void

Return Type

this
Http2Session.prependListener(
event: "localSettings",
listener: (settings: Settings) => void,
): this

Parameters

event: "localSettings"
listener: (settings: Settings) => void

Return Type

this
Http2Session.prependListener(
event: "ping",
listener: () => void,
): this

Parameters

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

Return Type

this
Http2Session.prependListener(
event: "remoteSettings",
listener: (settings: Settings) => void,
): this

Parameters

event: "remoteSettings"
listener: (settings: Settings) => void

Return Type

this
Http2Session.prependListener(
event: "timeout",
listener: () => void,
): this

Parameters

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

Return Type

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

Parameters

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

Return Type

this
Back to top