Http2SecureServer - Node documentation
interface Http2SecureServer
extends [tls.Server], HTTP2ServerCommon

Usage in Deno

import { type Http2SecureServer } from "node:http2";

Methods

addListener(
event: "checkContinue",
listener: () => void,
): this
addListener(
event: "request",
listener: () => void,
): this
addListener(
event: "session",
listener: (session: ServerHttp2Session) => void,
): this
addListener(
event: "sessionError",
listener: (err: Error) => void,
): this
addListener(
event: "stream",
listener: (
flags: number,
) => void
,
): this
addListener(
event: "timeout",
listener: () => void,
): this
addListener(
event: "unknownProtocol",
listener: (socket: tls.TLSSocket) => void,
): this
addListener(
event: string | symbol,
listener: (...args: any[]) => void,
): this
emit(
event: "checkContinue",
): boolean
emit(
event: "request",
): boolean
emit(
event: "session",
): boolean
emit(
event: "sessionError",
err: Error,
): boolean
emit(
event: "stream",
flags: number,
): boolean
emit(event: "timeout"): boolean
emit(
event: "unknownProtocol",
socket: tls.TLSSocket,
): boolean
emit(
event: string | symbol,
...args: any[],
): boolean
on(
event: "checkContinue",
listener: () => void,
): this
on(
event: "request",
listener: () => void,
): this
on(
event: "session",
listener: (session: ServerHttp2Session) => void,
): this
on(
event: "sessionError",
listener: (err: Error) => void,
): this
on(
event: "stream",
listener: (
flags: number,
) => void
,
): this
on(
event: "timeout",
listener: () => void,
): this
on(
event: "unknownProtocol",
listener: (socket: tls.TLSSocket) => void,
): this
on(
event: string | symbol,
listener: (...args: any[]) => void,
): this
once(
event: "checkContinue",
listener: () => void,
): this
once(
event: "request",
listener: () => void,
): this
once(
event: "session",
listener: (session: ServerHttp2Session) => void,
): this
once(
event: "sessionError",
listener: (err: Error) => void,
): this
once(
event: "stream",
listener: (
flags: number,
) => void
,
): this
once(
event: "timeout",
listener: () => void,
): this
once(
event: "unknownProtocol",
listener: (socket: tls.TLSSocket) => void,
): this
once(
event: string | symbol,
listener: (...args: any[]) => void,
): this
prependListener(
event: "checkContinue",
listener: () => void,
): this
prependListener(
event: "request",
listener: () => void,
): this
prependListener(
event: "session",
listener: (session: ServerHttp2Session) => void,
): this
prependListener(
event: "sessionError",
listener: (err: Error) => void,
): this
prependListener(
event: "stream",
listener: (
flags: number,
) => void
,
): this
prependListener(
event: "timeout",
listener: () => void,
): this
prependListener(
event: "unknownProtocol",
listener: (socket: tls.TLSSocket) => void,
): this
prependListener(
event: string | symbol,
listener: (...args: any[]) => void,
): this
prependOnceListener(
event: "checkContinue",
listener: () => void,
): this
prependOnceListener(
event: "request",
listener: () => void,
): this
prependOnceListener(
event: "session",
listener: (session: ServerHttp2Session) => void,
): this
prependOnceListener(
event: "sessionError",
listener: (err: Error) => void,
): this
prependOnceListener(
event: "stream",
listener: (
flags: number,
) => void
,
): this
prependOnceListener(
event: "timeout",
listener: () => void,
): this
prependOnceListener(
event: "unknownProtocol",
listener: (socket: tls.TLSSocket) => void,
): this
prependOnceListener(
event: string | symbol,
listener: (...args: any[]) => void,
): this