Http2ServerRequest.prototype.on - Node documentation
method Http2ServerRequest.prototype.on

Usage in Deno

import { Http2ServerRequest } from "node:http2";
Http2ServerRequest.prototype.on(
event: "aborted",
listener: (
hadError: boolean,
code: number,
) => void
,
): this

Parameters

event: "aborted"
listener: (
hadError: boolean,
code: number,
) => void

Return Type

this
Http2ServerRequest.prototype.on(
event: "close",
listener: () => void,
): this

Parameters

event: "close"
listener: () => void

Return Type

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

Parameters

event: "data"
listener: (chunk: Buffer | string) => void

Return Type

this
Http2ServerRequest.prototype.on(
event: "end",
listener: () => void,
): this

Parameters

event: "end"
listener: () => void

Return Type

this
Http2ServerRequest.prototype.on(
event: "readable",
listener: () => void,
): this

Parameters

event: "readable"
listener: () => void

Return Type

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

Parameters

event: "error"
listener: (err: Error) => void

Return Type

this
Http2ServerRequest.prototype.on(
event: string | symbol,
listener: (...args: any[]) => void,
): this

Parameters

event: string | symbol
listener: (...args: any[]) => void

Return Type

this