Skip to main content

on

method Http2Server.on
Jump to headingHttp2Server.on(
event: "checkContinue",
listener: (
request: InstanceType<Http2Request>,
response: InstanceType<Http2Response>,
) => void
,
): this

Parameters Jump to heading

Jump to headingevent: "checkContinue"
Jump to headinglistener: (
request: InstanceType<Http2Request>,
response: InstanceType<Http2Response>,
) => void

Return Type Jump to heading

this
Jump to headingHttp2Server.on(
event: "request",
listener: (
request: InstanceType<Http2Request>,
response: InstanceType<Http2Response>,
) => void
,
): this

Parameters Jump to heading

Jump to headingevent: "request"
Jump to headinglistener: (
request: InstanceType<Http2Request>,
response: InstanceType<Http2Response>,
) => void

Return Type Jump to heading

this
Jump to headingHttp2Server.on(
event: "session",
listener: (session: ServerHttp2Session<Http1Request, Http1Response, Http2Request, Http2Response>) => void,
): this

Parameters Jump to heading

Jump to headingevent: "session"
Jump to headinglistener: (session: ServerHttp2Session<Http1Request, Http1Response, Http2Request, Http2Response>) => void

Return Type Jump to heading

this
Jump to headingHttp2Server.on(
event: "sessionError",
listener: (err: Error) => void,
): this

Parameters Jump to heading

Jump to headingevent: "sessionError"
Jump to headinglistener: (err: Error) => void

Return Type Jump to heading

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

Parameters Jump to heading

Jump to headingevent: "stream"
Jump to headinglistener: (
flags: number,
) => void

Return Type Jump to heading

this
Jump to headingHttp2Server.on(
event: "timeout",
listener: () => void,
): this

Parameters Jump to heading

Jump to headingevent: "timeout"
Jump to headinglistener: () => void

Return Type Jump to heading

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

Parameters Jump to heading

Jump to headingevent: string | symbol
Jump to headinglistener: (...args: any[]) => void

Return Type Jump to heading

this
Back to top