method Http2Stream.once
Overload 1
#Http2Stream.once(event: "aborted",listener: () => void,): this
Overload 2
#Http2Stream.once(event: "close",listener: () => void,): this
Overload 3
#Http2Stream.once(event: "data",listener: (chunk: Buffer | string) => void,): this
Overload 4
#Http2Stream.once(event: "drain",listener: () => void,): this
Overload 5
#Http2Stream.once(event: "end",listener: () => void,): this
Overload 6
#Http2Stream.once(event: "error",listener: (err: Error) => void,): this
Overload 7
#Http2Stream.once(event: "finish",listener: () => void,): this
Overload 8
#Http2Stream.once(event: "frameError",listener: (frameType: number,errorCode: number,) => void,): this
Overload 9
#Http2Stream.once(event: "pipe",listener: (src: stream.Readable) => void,): this
Overload 10
#Http2Stream.once(event: "unpipe",listener: (src: stream.Readable) => void,): this
Overload 11
#Http2Stream.once(event: "streamClosed",listener: (code: number) => void,): this
Overload 12
#Http2Stream.once(event: "timeout",listener: () => void,): this
Overload 13
#Http2Stream.once(event: "trailers",listener: (trailers: IncomingHttpHeaders,flags: number,) => void,): this
Parameters #
#event: "trailers"
#listener: (trailers: IncomingHttpHeaders,flags: number,) => void
Return Type #
this
Overload 14
#Http2Stream.once(event: "wantTrailers",listener: () => void,): this