Http2Server.prependOnceListener - Node documentation
method Http2Server.prependOnceListener

Usage in Deno

import { type Http2Server } from "node:http2";
Http2Server.prependOnceListener(
event: "checkContinue",
listener: () => void,
): this

Parameters

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

Return Type

this
Http2Server.prependOnceListener(
event: "request",
listener: () => void,
): this

Parameters

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

Return Type

this
Http2Server.prependOnceListener(
event: "session",
listener: (session: ServerHttp2Session) => void,
): this

Parameters

event: "session"
listener: (session: ServerHttp2Session) => void

Return Type

this
Http2Server.prependOnceListener(
event: "sessionError",
listener: (err: Error) => void,
): this

Parameters

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

Return Type

this
Http2Server.prependOnceListener(
event: "stream",
listener: (
flags: number,
) => void
,
): this

Parameters

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

Return Type

this
Http2Server.prependOnceListener(
event: "timeout",
listener: () => void,
): this

Parameters

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

Return Type

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

Parameters

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

Return Type

this