Skip to main content
ClientHttp2Stream.once - node__http2.d.ts - Node documentation
method ClientHttp2Stream.once

Usage in Deno

```typescript import { type ClientHttp2Stream } from "node:node__http2.d.ts"; ```
ClientHttp2Stream.once(
event: "continue",
listener: () => { },
): this

Parameters

event: "continue"
listener: () => { }

Return Type

this
ClientHttp2Stream.once(
event: "headers",
listener: () => void,
): this

Parameters

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

Return Type

this
ClientHttp2Stream.once(
event: "push",
listener: (
flags: number,
) => void
,
): this

Parameters

event: "push"
listener: (
flags: number,
) => void

Return Type

this
ClientHttp2Stream.once(
event: "response",
listener: () => void,
): this

Parameters

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

Return Type

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

Parameters

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

Return Type

this