Skip to main content

once

method Http2Stream.once
Jump to headingHttp2Stream.once(
event: "aborted",
listener: () => void,
): this

Parameters Jump to heading

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

Return Type Jump to heading

this
Jump to headingHttp2Stream.once(
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 headingHttp2Stream.once(
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 headingHttp2Stream.once(
event: "drain",
listener: () => void,
): this

Parameters Jump to heading

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

Return Type Jump to heading

this
Jump to headingHttp2Stream.once(
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 headingHttp2Stream.once(
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 headingHttp2Stream.once(
event: "finish",
listener: () => void,
): this

Parameters Jump to heading

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

Return Type Jump to heading

this
Jump to headingHttp2Stream.once(
event: "frameError",
listener: (
frameType: number,
errorCode: number,
) => void
,
): this

Parameters Jump to heading

Jump to headingevent: "frameError"
Jump to headinglistener: (
frameType: number,
errorCode: number,
) => void

Return Type Jump to heading

this
Jump to headingHttp2Stream.once(
event: "pipe",
listener: (src: stream.Readable) => void,
): this

Parameters Jump to heading

Jump to headingevent: "pipe"
Jump to headinglistener: (src: stream.Readable) => void

Return Type Jump to heading

this
Jump to headingHttp2Stream.once(
event: "unpipe",
listener: (src: stream.Readable) => void,
): this

Parameters Jump to heading

Jump to headingevent: "unpipe"
Jump to headinglistener: (src: stream.Readable) => void

Return Type Jump to heading

this
Jump to headingHttp2Stream.once(
event: "streamClosed",
listener: (code: number) => void,
): this

Parameters Jump to heading

Jump to headingevent: "streamClosed"
Jump to headinglistener: (code: number) => void

Return Type Jump to heading

this
Jump to headingHttp2Stream.once(
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 headingHttp2Stream.once(
event: "trailers",
listener: (
flags: number,
) => void
,
): this

Parameters Jump to heading

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

Return Type Jump to heading

this
Jump to headingHttp2Stream.once(
event: "wantTrailers",
listener: () => void,
): this

Parameters Jump to heading

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

Return Type Jump to heading

this
Jump to headingHttp2Stream.once(
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