@@ -365,7 +365,7 @@ added: v8.4.0
365
365
* ` exclusive ` {boolean} When ` true ` and ` parent ` identifies a parent Stream,
366
366
the created stream is made the sole direct dependency of the parent, with
367
367
all other existing dependents made a dependent of the newly created stream.
368
- Defaults to ` false ` .
368
+ ** Default: ** ` false `
369
369
* ` parent ` {number} Specifies the numeric identifier of a stream the newly
370
370
created stream is dependent on.
371
371
* ` weight ` {number} Specifies the relative dependency of a stream in relation
@@ -415,7 +415,7 @@ added: v8.4.0
415
415
-->
416
416
417
417
* stream {Http2Stream}
418
- * code {number} Unsigned 32-bit integer identifying the error code. Defaults to
418
+ * code {number} Unsigned 32-bit integer identifying the error code. ** Default: **
419
419
` http2.constant.NGHTTP2_NO_ERROR ` (` 0x00 ` )
420
420
* Returns: {undefined}
421
421
@@ -444,7 +444,7 @@ added: v8.4.0
444
444
* ` graceful ` {boolean} ` true ` to attempt a polite shutdown of the
445
445
` Http2Session ` .
446
446
* ` errorCode ` {number} The HTTP/2 [ error code] [ ] to return. Note that this is
447
- * not* the same thing as an HTTP Response Status Code. Defaults to ` 0x00 `
447
+ * not* the same thing as an HTTP Response Status Code. ** Default: ** ` 0x00 `
448
448
(No Error).
449
449
* ` lastStreamID ` {number} The Stream ID of the last successfully processed
450
450
` Http2Stream ` on this ` Http2Session ` .
@@ -522,8 +522,8 @@ added: v8.4.0
522
522
* ` options ` {Object}
523
523
* ` exclusive ` {boolean} When ` true ` and ` parent ` identifies a parent Stream,
524
524
the given stream is made the sole direct dependency of the parent, with
525
- all other existing dependents made a dependent of the given stream. Defaults
526
- to ` false ` .
525
+ all other existing dependents made a dependent of the given stream. ** Default: **
526
+ ` false `
527
527
* ` parent ` {number} Specifies the numeric identifier of a stream the given
528
528
stream is dependent on.
529
529
* ` weight ` {number} Specifies the relative dependency of a stream in relation
@@ -734,8 +734,8 @@ added: v8.4.0
734
734
* ` options ` {Object}
735
735
* ` exclusive ` {boolean} When ` true ` and ` parent ` identifies a parent Stream,
736
736
this stream is made the sole direct dependency of the parent, with
737
- all other existing dependents made a dependent of this stream. Defaults
738
- to ` false ` .
737
+ all other existing dependents made a dependent of this stream. ** Default: **
738
+ ` false `
739
739
* ` parent ` {number} Specifies the numeric identifier of a stream this stream
740
740
is dependent on.
741
741
* ` weight ` {number} Specifies the relative dependency of a stream in relation
@@ -764,7 +764,7 @@ calling `http2stream.rstStream()`, or `http2stream.destroy()`. Will be
764
764
added: v8.4.0
765
765
-->
766
766
767
- * code {number} Unsigned 32-bit integer identifying the error code. Defaults to
767
+ * code {number} Unsigned 32-bit integer identifying the error code. ** Default: **
768
768
` http2.constant.NGHTTP2_NO_ERROR ` (` 0x00 ` )
769
769
* Returns: {undefined}
770
770
@@ -986,7 +986,7 @@ added: v8.4.0
986
986
* ` exclusive ` {boolean} When ` true ` and ` parent ` identifies a parent Stream,
987
987
the created stream is made the sole direct dependency of the parent, with
988
988
all other existing dependents made a dependent of the newly created stream.
989
- Defaults to ` false ` .
989
+ ** Default: ** ` false `
990
990
* ` parent ` {number} Specifies the numeric identifier of a stream the newly
991
991
created stream is dependent on.
992
992
* ` callback ` {Function} Callback that is called once the push stream has been
@@ -1063,14 +1063,14 @@ fields.
1063
1063
added: v8.4.0
1064
1064
-->
1065
1065
1066
- * ` fd ` {number} A readable file descriptor
1066
+ * ` fd ` {number} A readable file descriptor.
1067
1067
* ` headers ` {[ Headers Object] [ ] }
1068
1068
* ` options ` {Object}
1069
1069
* ` statCheck ` {Function}
1070
1070
* ` getTrailers ` {Function} Callback function invoked to collect trailer
1071
1071
headers.
1072
- * ` offset ` {number} The offset position at which to begin reading
1073
- * ` length ` {number} The amount of data from the fd to send
1072
+ * ` offset ` {number} The offset position at which to begin reading.
1073
+ * ` length ` {number} The amount of data from the fd to send.
1074
1074
1075
1075
Initiates a response whose data is read from the given file descriptor. No
1076
1076
validation is performed on the given file descriptor. If an error occurs while
@@ -1152,11 +1152,11 @@ added: v8.4.0
1152
1152
* ` options ` {Object}
1153
1153
* ` statCheck ` {Function}
1154
1154
* ` onError ` {Function} Callback function invoked in the case of an
1155
- Error before send
1155
+ Error before send.
1156
1156
* ` getTrailers ` {Function} Callback function invoked to collect trailer
1157
1157
headers.
1158
- * ` offset ` {number} The offset position at which to begin reading
1159
- * ` length ` {number} The amount of data from the fd to send
1158
+ * ` offset ` {number} The offset position at which to begin reading.
1159
+ * ` length ` {number} The amount of data from the fd to send.
1160
1160
1161
1161
Sends a regular file as the response. The ` path ` must specify a regular file
1162
1162
or an ` 'error' ` event will be emitted on the ` Http2Stream ` object.
@@ -1474,13 +1474,13 @@ added: v8.4.0
1474
1474
1475
1475
* ` options ` {Object}
1476
1476
* ` maxDeflateDynamicTableSize ` {number} Sets the maximum dynamic table size
1477
- for deflating header fields. Defaults to 4Kib.
1477
+ for deflating header fields. ** Default: ** ` 4Kib `
1478
1478
* ` maxSendHeaderBlockLength ` {number} Sets the maximum allowed size for a
1479
1479
serialized, compressed block of headers. Attempts to send headers that
1480
1480
exceed this limit will result in a ` 'frameError' ` event being emitted
1481
1481
and the stream being closed and destroyed.
1482
1482
* ` paddingStrategy ` {number} Identifies the strategy used for determining the
1483
- amount of padding to use for HEADERS and DATA frames. Defaults to
1483
+ amount of padding to use for HEADERS and DATA frames. ** Default: **
1484
1484
` http2.constants.PADDING_STRATEGY_NONE ` . Value may be one of:
1485
1485
* ` http2.constants.PADDING_STRATEGY_NONE ` - Specifies that no padding is
1486
1486
to be applied.
@@ -1492,8 +1492,8 @@ added: v8.4.0
1492
1492
amount of padding.
1493
1493
* ` peerMaxConcurrentStreams ` {number} Sets the maximum number of concurrent
1494
1494
streams for the remote peer as if a SETTINGS frame had been received. Will
1495
- be overridden if the remote peer sets its own value for
1496
- ` maxConcurrentStreams ` . Defaults to 100.
1495
+ be overridden if the remote peer sets its own value for.
1496
+ ` maxConcurrentStreams ` . ** Default ** ` 100 `
1497
1497
* ` selectPadding ` {Function} When ` options.paddingStrategy ` is equal to
1498
1498
` http2.constants.PADDING_STRATEGY_CALLBACK ` , provides the callback function
1499
1499
used to determine the padding. See [ Using options.selectPadding] [ ] .
@@ -1529,16 +1529,16 @@ added: v8.4.0
1529
1529
1530
1530
* ` options ` {Object}
1531
1531
* ` allowHTTP1 ` {boolean} Incoming client connections that do not support
1532
- HTTP/2 will be downgraded to HTTP/1.x when set to ` true ` . The default value
1533
- is ` false ` . See the [ ` 'unknownProtocol' ` ] [ ] event. See [ ALPN negotiation] [ ] .
1532
+ HTTP/2 will be downgraded to HTTP/1.x when set to ` true ` . ** Default: **
1533
+ ` false ` . See the [ ` 'unknownProtocol' ` ] [ ] event. See [ ALPN negotiation] [ ] .
1534
1534
* ` maxDeflateDynamicTableSize ` {number} Sets the maximum dynamic table size
1535
- for deflating header fields. Defaults to 4Kib.
1535
+ for deflating header fields. ** Default: ** ` 4Kib `
1536
1536
* ` maxSendHeaderBlockLength ` {number} Sets the maximum allowed size for a
1537
1537
serialized, compressed block of headers. Attempts to send headers that
1538
1538
exceed this limit will result in a ` 'frameError' ` event being emitted
1539
1539
and the stream being closed and destroyed.
1540
1540
* ` paddingStrategy ` {number} Identifies the strategy used for determining the
1541
- amount of padding to use for HEADERS and DATA frames. Defaults to
1541
+ amount of padding to use for HEADERS and DATA frames. ** Default: **
1542
1542
` http2.constants.PADDING_STRATEGY_NONE ` . Value may be one of:
1543
1543
* ` http2.constants.PADDING_STRATEGY_NONE ` - Specifies that no padding is
1544
1544
to be applied.
@@ -1551,7 +1551,7 @@ added: v8.4.0
1551
1551
* ` peerMaxConcurrentStreams ` {number} Sets the maximum number of concurrent
1552
1552
streams for the remote peer as if a SETTINGS frame had been received. Will
1553
1553
be overridden if the remote peer sets its own value for
1554
- ` maxConcurrentStreams ` . Defaults to 100.
1554
+ ` maxConcurrentStreams ` . ** Default: ** ` 100 `
1555
1555
* ` selectPadding ` {Function} When ` options.paddingStrategy ` is equal to
1556
1556
` http2.constants.PADDING_STRATEGY_CALLBACK ` , provides the callback function
1557
1557
used to determine the padding. See [ Using options.selectPadding] [ ] .
@@ -1595,7 +1595,7 @@ added: v8.4.0
1595
1595
* ` authority ` {string|URL}
1596
1596
* ` options ` {Object}
1597
1597
* ` maxDeflateDynamicTableSize ` {number} Sets the maximum dynamic table size
1598
- for deflating header fields. Defaults to 4Kib.
1598
+ for deflating header fields. ** Default: ** ` 4Kib `
1599
1599
* ` maxReservedRemoteStreams ` {number} Sets the maximum number of reserved push
1600
1600
streams the client will accept at any given time. Once the current number of
1601
1601
currently reserved push streams exceeds reaches this limit, new push streams
@@ -1605,7 +1605,7 @@ added: v8.4.0
1605
1605
exceed this limit will result in a ` 'frameError' ` event being emitted
1606
1606
and the stream being closed and destroyed.
1607
1607
* ` paddingStrategy ` {number} Identifies the strategy used for determining the
1608
- amount of padding to use for HEADERS and DATA frames. Defaults to
1608
+ amount of padding to use for HEADERS and DATA frames. ** Default: **
1609
1609
` http2.constants.PADDING_STRATEGY_NONE ` . Value may be one of:
1610
1610
* ` http2.constants.PADDING_STRATEGY_NONE ` - Specifies that no padding is
1611
1611
to be applied.
@@ -1618,7 +1618,7 @@ added: v8.4.0
1618
1618
* ` peerMaxConcurrentStreams ` {number} Sets the maximum number of concurrent
1619
1619
streams for the remote peer as if a SETTINGS frame had been received. Will
1620
1620
be overridden if the remote peer sets its own value for
1621
- ` maxConcurrentStreams ` . Defaults to 100.
1621
+ ` maxConcurrentStreams ` . ** Default: ** ` 100 `
1622
1622
* ` selectPadding ` {Function} When ` options.paddingStrategy ` is equal to
1623
1623
` http2.constants.PADDING_STRATEGY_CALLBACK ` , provides the callback function
1624
1624
used to determine the padding. See [ Using options.selectPadding] [ ] .
@@ -1707,7 +1707,7 @@ console.log(packed.toString('base64'));
1707
1707
added: v8.4.0
1708
1708
-->
1709
1709
1710
- * ` buf ` {Buffer|Uint8Array} The packed settings
1710
+ * ` buf ` {Buffer|Uint8Array} The packed settings.
1711
1711
* Returns: {[ Settings Object] [ ] }
1712
1712
1713
1713
Returns a [ Settings Object] [ ] containing the deserialized settings from the
@@ -1757,15 +1757,15 @@ These objects are ordinary JavaScript objects containing the following
1757
1757
properties.
1758
1758
1759
1759
* ` headerTableSize ` {number} Specifies the maximum number of bytes used for
1760
- header compression. The default value is 4,096 octets. The minimum allowed
1760
+ header compression. ** Default: ** ` 4,096 octets ` . The minimum allowed
1761
1761
value is 0. The maximum allowed value is 2<sup >32</sup >-1.
1762
1762
* ` enablePush ` {boolean} Specifies ` true ` if HTTP/2 Push Streams are to be
1763
1763
permitted on the ` Http2Session ` instances.
1764
1764
* ` initialWindowSize ` {number} Specifies the * senders* initial window size
1765
- for stream-level flow control. The default value is 65,535 bytes. The minimum
1765
+ for stream-level flow control. ** Default: ** ` 65,535 bytes ` . The minimum
1766
1766
allowed value is 0. The maximum allowed value is 2<sup >32</sup >-1.
1767
1767
* ` maxFrameSize ` {number} Specifies the size of the largest frame payload.
1768
- The default and the minimum allowed value is 16,384 bytes . The maximum
1768
+ ** Default: ** ` 16,384 bytes ` . The minimum allowed value is 16,384. The maximum
1769
1769
allowed value is 2<sup >24</sup >-1.
1770
1770
* ` maxConcurrentStreams ` {number} Specifies the maximum number of concurrent
1771
1771
streams permitted on an ` Http2Session ` . There is no default value which
@@ -2478,7 +2478,7 @@ added: v8.4.0
2478
2478
-->
2479
2479
2480
2480
* ` name ` {string}
2481
- * ` value ` {string | string[ ] }
2481
+ * ` value ` {string| string[ ] }
2482
2482
2483
2483
Sets a single header value for implicit headers. If this header already exists
2484
2484
in the to-be-sent headers, its value will be replaced. Use an array of strings
0 commit comments