Skip to main content
Http2Session.goaway - http2 - Node documentation
method Http2Session.goaway

Usage in Deno

import { type Http2Session } from "node:http2";
Http2Session.goaway(
code?: number,
lastStreamID?: number,
opaqueData?: ArrayBufferView,
): void

Transmits a GOAWAY frame to the connected peer without shutting down theHttp2Session.

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