Http2Limits
Http2Limits =
object
Defined in: packages/net-http/src/h2/http2-limits.ts:5
The limits one HTTP/2 endpoint sets for its peer. Every one bounds a cost the peer can drive, so none has a default.
Properties
Section titled “Properties”connectionWindowSize
Section titled “connectionWindowSize”
readonlyconnectionWindowSize:number
Defined in: packages/net-http/src/h2/http2-limits.ts:25
Bytes the peer may send on the whole connection before they are acknowledged, at least 65 535. Acknowledged as they arrive, so this sets throughput rather than memory.
maxConcurrentStreams
Section titled “maxConcurrentStreams”
readonlymaxConcurrentStreams:number
Defined in: packages/net-http/src/h2/http2-limits.ts:11
Streams the peer may have open at once (SETTINGS_MAX_CONCURRENT_STREAMS).
A server’s real concurrency limit; a client advertises it too, but its peer
opens no streams since push is disabled.
maxControlFramesPerSecond
Section titled “maxControlFramesPerSecond”
readonlymaxControlFramesPerSecond:number
Defined in: packages/net-http/src/h2/http2-limits.ts:33
Frames per second that cost work without carrying a request — RST_STREAM,
PING, SETTINGS, empty DATA, refused streams — before the connection is
closed with ENHANCE_YOUR_CALM. The guard against rapid-reset and ping
floods.
streamWindowSize
Section titled “streamWindowSize”
readonlystreamWindowSize:number
Defined in: packages/net-http/src/h2/http2-limits.ts:18
Bytes the peer may send on one stream before it is read
(SETTINGS_INITIAL_WINDOW_SIZE), at least 65 535: what one stream buffers
at most.