Skip to content

Commit 319707a

Browse files
Trottcodebytere
authored andcommitted
doc: correct default values in http2 docs
The http2 docs include invalid JavaScript values as defaults for three options. The intention was increased clarity, but we specify valid values everywhere else in our docs, so let's do that for consistency. PR-URL: #33997 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent b4d0eeb commit 319707a

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

doc/api/http2.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -2495,15 +2495,15 @@ properties.
24952495

24962496
* `headerTableSize` {number} Specifies the maximum number of bytes used for
24972497
header compression. The minimum allowed value is 0. The maximum allowed value
2498-
is 2<sup>32</sup>-1. **Default:** `4,096 octets`.
2498+
is 2<sup>32</sup>-1. **Default:** `4096`.
24992499
* `enablePush` {boolean} Specifies `true` if HTTP/2 Push Streams are to be
25002500
permitted on the `Http2Session` instances. **Default:** `true`.
2501-
* `initialWindowSize` {number} Specifies the *senders* initial window size
2502-
for stream-level flow control. The minimum allowed value is 0. The maximum
2503-
allowed value is 2<sup>32</sup>-1. **Default:** `65,535 bytes`.
2504-
* `maxFrameSize` {number} Specifies the size of the largest frame payload.
2505-
The minimum allowed value is 16,384. The maximum allowed value
2506-
is 2<sup>24</sup>-1. **Default:** `16,384 bytes`.
2501+
* `initialWindowSize` {number} Specifies the *sender's* initial window size in
2502+
bytes for stream-level flow control. The minimum allowed value is 0. The
2503+
maximum allowed value is 2<sup>32</sup>-1. **Default:** `65535`.
2504+
* `maxFrameSize` {number} Specifies the size in bytes of the largest frame
2505+
payload. The minimum allowed value is 16,384. The maximum allowed value is
2506+
2<sup>24</sup>-1. **Default:** `16384`.
25072507
* `maxConcurrentStreams` {number} Specifies the maximum number of concurrent
25082508
streams permitted on an `Http2Session`. There is no default value which
25092509
implies, at least theoretically, 2<sup>32</sup>-1 streams may be open

0 commit comments

Comments
 (0)