Skip to main content
Http2SecureServer.on - http2 - Node documentation
method Http2SecureServer.on

Usage in Deno

import { type Http2SecureServer } from "node:http2";
Http2SecureServer.on(
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.on(
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.on(
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.on(
event: "sessionError",
listener: (err: Error) => void,
): this

Parameters

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

Return Type

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

Parameters

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

Return Type

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

Parameters

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

Return Type

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

Parameters

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

Return Type

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

Parameters

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

Return Type

this
Back to top