Skip to main content
Http2Server.emit - http2 - Node documentation
method Http2Server.emit

Usage in Deno

import { type Http2Server } from "node:http2";
Http2Server.emit(
event: "checkContinue",
request: InstanceType<Http2Request>,
response: InstanceType<Http2Response>,
): boolean

Parameters

event: "checkContinue"
request: InstanceType<Http2Request>
response: InstanceType<Http2Response>

Return Type

boolean
Http2Server.emit(
event: "request",
request: InstanceType<Http2Request>,
response: InstanceType<Http2Response>,
): boolean

Parameters

event: "request"
request: InstanceType<Http2Request>
response: InstanceType<Http2Response>

Return Type

boolean
Http2Server.emit(
event: "session",
session: ServerHttp2Session<Http1Request, Http1Response, Http2Request, Http2Response>,
): boolean

Parameters

event: "session"
session: ServerHttp2Session<Http1Request, Http1Response, Http2Request, Http2Response>

Return Type

boolean
Http2Server.emit(
event: "sessionError",
err: Error,
): boolean

Parameters

event: "sessionError"
err: Error

Return Type

boolean
Http2Server.emit(
event: "stream",
flags: number,
): boolean

Parameters

event: "stream"
flags: number

Return Type

boolean
Http2Server.emit(event: "timeout"): boolean

Parameters

event: "timeout"

Return Type

boolean
Http2Server.emit(
event: string | symbol,
...args: any[],
): boolean

Parameters

event: string | symbol
...args: any[]

Return Type

boolean