Skip to content

Commit 86cbad8

Browse files
committed
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 db52ae8 commit 86cbad8

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

doc/api/http2.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2501,15 +2501,15 @@ properties.
25012501

25022502
* `headerTableSize` {number} Specifies the maximum number of bytes used for
25032503
header compression. The minimum allowed value is 0. The maximum allowed value
2504-
is 2<sup>32</sup>-1. **Default:** `4,096 octets`.
2504+
is 2<sup>32</sup>-1. **Default:** `4096`.
25052505
* `enablePush` {boolean} Specifies `true` if HTTP/2 Push Streams are to be
25062506
permitted on the `Http2Session` instances. **Default:** `true`.
2507-
* `initialWindowSize` {number} Specifies the *senders* initial window size
2508-
for stream-level flow control. The minimum allowed value is 0. The maximum
2509-
allowed value is 2<sup>32</sup>-1. **Default:** `65,535 bytes`.
2510-
* `maxFrameSize` {number} Specifies the size of the largest frame payload.
2511-
The minimum allowed value is 16,384. The maximum allowed value
2512-
is 2<sup>24</sup>-1. **Default:** `16,384 bytes`.
2507+
* `initialWindowSize` {number} Specifies the *sender's* initial window size in
2508+
bytes for stream-level flow control. The minimum allowed value is 0. The
2509+
maximum allowed value is 2<sup>32</sup>-1. **Default:** `65535`.
2510+
* `maxFrameSize` {number} Specifies the size in bytes of the largest frame
2511+
payload. The minimum allowed value is 16,384. The maximum allowed value is
2512+
2<sup>24</sup>-1. **Default:** `16384`.
25132513
* `maxConcurrentStreams` {number} Specifies the maximum number of concurrent
25142514
streams permitted on an `Http2Session`. There is no default value which
25152515
implies, at least theoretically, 2<sup>32</sup>-1 streams may be open

0 commit comments

Comments
 (0)