Skip to main content

goaway

method Http2Session.goaway
Jump to headingHttp2Session.goaway(
code?: number,
lastStreamID?: number,
opaqueData?: ArrayBufferView,
): void

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

Parameters Jump to heading

optional
Jump to headingcode: number

An HTTP/2 error code

optional
Jump to headinglastStreamID: number

The numeric ID of the last processed Http2Stream

optional
Jump to headingopaqueData: ArrayBufferView

A TypedArray or DataView instance containing additional data to be carried within the GOAWAY frame.

Return Type Jump to heading

void
Back to top