Skip to main content
Http2Session.goaway - node__http2.d.ts - Node documentation
method Http2Session.goaway

Usage in Deno

```typescript import { type Http2Session } from "node:node__http2.d.ts"; ```
Http2Session.goaway(
code?: number,
lastStreamID?: number,
opaqueData?: ArrayBufferView,
): void
Transmits a `GOAWAY` frame to the connected peer _without_ shutting down the`Http2Session`.

Parameters

optional
code: number
An HTTP/2 error code
optional
lastStreamID: number
The numeric ID of the last processed `Http2Stream`
optional
opaqueData: ArrayBufferView
A `TypedArray` or `DataView` instance containing additional data to be carried within the `GOAWAY` frame.

Return Type

void