deno.com

method Http2ServerResponse.prototype.once

Overload 1

#Http2ServerResponse.prototype.once(
event: "close",
listener: () => void,
): this

Parameters #

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

Return Type #

this

Overload 2

#Http2ServerResponse.prototype.once(
event: "drain",
listener: () => void,
): this

Parameters #

#event: "drain"
#listener: () => void

Return Type #

this

Overload 3

#Http2ServerResponse.prototype.once(
event: "error",
listener: (error: Error) => void,
): this

Parameters #

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

Return Type #

this

Overload 4

#Http2ServerResponse.prototype.once(
event: "finish",
listener: () => void,
): this

Parameters #

#event: "finish"
#listener: () => void

Return Type #

this

Overload 5

#Http2ServerResponse.prototype.once(
event: "pipe",
listener: (src: stream.Readable) => void,
): this

Parameters #

#event: "pipe"
#listener: (src: stream.Readable) => void

Return Type #

this

Overload 6

#Http2ServerResponse.prototype.once(
event: "unpipe",
listener: (src: stream.Readable) => void,
): this

Parameters #

#event: "unpipe"
#listener: (src: stream.Readable) => void

Return Type #

this

Overload 7

#Http2ServerResponse.prototype.once(
event: string | symbol,
listener: (...args: any[]) => void,
): this

Parameters #

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

Return Type #

this