Skip to main content

on

method Http2ServerRequest.prototype.on
Jump to headingHttp2ServerRequest.prototype.on(
event: "aborted",
listener: (
hadError: boolean,
code: number,
) => void
,
): this

Parameters Jump to heading

Jump to headingevent: "aborted"
Jump to headinglistener: (
hadError: boolean,
code: number,
) => void

Return Type Jump to heading

this
Jump to headingHttp2ServerRequest.prototype.on(
event: "close",
listener: () => void,
): this

Parameters Jump to heading

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

Return Type Jump to heading

this
Jump to headingHttp2ServerRequest.prototype.on(
event: "data",
listener: (chunk: Buffer | string) => void,
): this

Parameters Jump to heading

Jump to headingevent: "data"
Jump to headinglistener: (chunk: Buffer | string) => void

Return Type Jump to heading

this
Jump to headingHttp2ServerRequest.prototype.on(
event: "end",
listener: () => void,
): this

Parameters Jump to heading

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

Return Type Jump to heading

this
Jump to headingHttp2ServerRequest.prototype.on(
event: "readable",
listener: () => void,
): this

Parameters Jump to heading

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

Return Type Jump to heading

this
Jump to headingHttp2ServerRequest.prototype.on(
event: "error",
listener: (err: Error) => void,
): this

Parameters Jump to heading

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

Return Type Jump to heading

this
Jump to headingHttp2ServerRequest.prototype.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