From 319707add2a33f6af753be941abbc5edea729052 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Sat, 20 Jun 2020 18:03:52 -0700 Subject: [PATCH] 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: https://github.com/nodejs/node/pull/33997 Reviewed-By: Anna Henningsen Reviewed-By: Trivikram Kamat Reviewed-By: James M Snell --- doc/api/http2.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/doc/api/http2.md b/doc/api/http2.md index 38da6ca8a11de4..c82df5294dca0e 100644 --- a/doc/api/http2.md +++ b/doc/api/http2.md @@ -2495,15 +2495,15 @@ properties. * `headerTableSize` {number} Specifies the maximum number of bytes used for header compression. The minimum allowed value is 0. The maximum allowed value - is 232-1. **Default:** `4,096 octets`. + is 232-1. **Default:** `4096`. * `enablePush` {boolean} Specifies `true` if HTTP/2 Push Streams are to be permitted on the `Http2Session` instances. **Default:** `true`. -* `initialWindowSize` {number} Specifies the *senders* initial window size - for stream-level flow control. The minimum allowed value is 0. The maximum - allowed value is 232-1. **Default:** `65,535 bytes`. -* `maxFrameSize` {number} Specifies the size of the largest frame payload. - The minimum allowed value is 16,384. The maximum allowed value - is 224-1. **Default:** `16,384 bytes`. +* `initialWindowSize` {number} Specifies the *sender's* initial window size in + bytes for stream-level flow control. The minimum allowed value is 0. The + maximum allowed value is 232-1. **Default:** `65535`. +* `maxFrameSize` {number} Specifies the size in bytes of the largest frame + payload. The minimum allowed value is 16,384. The maximum allowed value is + 224-1. **Default:** `16384`. * `maxConcurrentStreams` {number} Specifies the maximum number of concurrent streams permitted on an `Http2Session`. There is no default value which implies, at least theoretically, 232-1 streams may be open