Skip to content

Http2ServerConnectionOptions

Http2ServerConnectionOptions = object

Defined in: packages/net-http/src/h2/http2-server-connection.ts:33

Construction options for Http2ServerConnection.

readonly connection: TransportConnection

Defined in: packages/net-http/src/h2/http2-server-connection.ts:38

An accepted connection that negotiated h2, or spoke it with prior knowledge.


readonly handler: HttpHandler

Defined in: packages/net-http/src/h2/http2-server-connection.ts:40


readonly idleTimeoutMs: number

Defined in: packages/net-http/src/h2/http2-server-connection.ts:53

How long, in milliseconds, the connection may stay without an open stream before it is closed with GOAWAY. Required.


readonly limits: Http2Limits

Defined in: packages/net-http/src/h2/http2-server-connection.ts:56

The HTTP/2 limits advertised to the client. Required.


readonly maxHeadSize: number

Defined in: packages/net-http/src/h2/http2-server-connection.ts:47

Largest request field section accepted, counted as RFC 9113 §6.5.2 counts it (SETTINGS_MAX_HEADER_LIST_SIZE); a larger one is answered with 431. Required.