Skip to main content

emit

method Http2Server.emit
Jump to headingHttp2Server.emit(
event: "checkContinue",
request: InstanceType<Http2Request>,
response: InstanceType<Http2Response>,
): boolean

Parameters Jump to heading

Jump to headingevent: "checkContinue"
Jump to headingrequest: InstanceType<Http2Request>
Jump to headingresponse: InstanceType<Http2Response>

Return Type Jump to heading

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

Parameters Jump to heading

Jump to headingevent: "request"
Jump to headingrequest: InstanceType<Http2Request>
Jump to headingresponse: InstanceType<Http2Response>

Return Type Jump to heading

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

Parameters Jump to heading

Jump to headingevent: "session"
Jump to headingsession: ServerHttp2Session<Http1Request, Http1Response, Http2Request, Http2Response>

Return Type Jump to heading

boolean
Jump to headingHttp2Server.emit(
event: "sessionError",
err: Error,
): boolean

Parameters Jump to heading

Jump to headingevent: "sessionError"

Return Type Jump to heading

boolean
Jump to headingHttp2Server.emit(
event: "stream",
flags: number,
): boolean
Jump to headingHttp2Server.emit(event: "timeout"): boolean

Parameters Jump to heading

Jump to headingevent: "timeout"

Return Type Jump to heading

boolean
Jump to headingHttp2Server.emit(
event: string | symbol,
...args: any[],
): boolean

Parameters Jump to heading

Jump to headingevent: string | symbol
Jump to heading<span>...args</span>: any[]

Return Type Jump to heading

boolean
Back to top