Skip to main content
Http2SecureServer.prependListener - node__http2.d.ts - Node documentation
method Http2SecureServer.prependListener

Usage in Deno

```typescript import { type Http2SecureServer } from "node:node__http2.d.ts"; ```
Http2SecureServer.prependListener(
event: "checkContinue",
listener: (
request: InstanceType<Http2Request>,
response: InstanceType<Http2Response>,
) => void
,
): this

Parameters

event: "checkContinue"
listener: (
request: InstanceType<Http2Request>,
response: InstanceType<Http2Response>,
) => void

Return Type

this
Http2SecureServer.prependListener(
event: "request",
listener: (
request: InstanceType<Http2Request>,
response: InstanceType<Http2Response>,
) => void
,
): this

Parameters

event: "request"
listener: (
request: InstanceType<Http2Request>,
response: InstanceType<Http2Response>,
) => void

Return Type

this
Http2SecureServer.prependListener(
event: "session",
listener: (session: ServerHttp2Session<Http1Request, Http1Response, Http2Request, Http2Response>) => void,
): this

Parameters

event: "session"
listener: (session: ServerHttp2Session<Http1Request, Http1Response, Http2Request, Http2Response>) => void

Return Type

this
Http2SecureServer.prependListener(
event: "sessionError",
listener: (err: Error) => void,
): this

Parameters

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

Return Type

this
Http2SecureServer.prependListener(
event: "stream",
listener: (
flags: number,
) => void
,
): this

Parameters

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

Return Type

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

Parameters

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

Return Type

this
Http2SecureServer.prependListener(
event: "unknownProtocol",
listener: (socket: tls.TLSSocket) => void,
): this

Parameters

event: "unknownProtocol"
listener: (socket: tls.TLSSocket) => void

Return Type

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

Parameters

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

Return Type

this