@@ -283,6 +283,18 @@ session.setTimeout(2000);
283283session .on (' timeout' , () => { /** .. **/ });
284284```
285285
286+ #### http2session.alpnProtocol
287+ <!-- YAML
288+ added: REPLACEME
289+ -->
290+
291+ * Value: {string|undefined}
292+
293+ Value will be ` undefined ` if the ` Http2Session ` is not yet connected to a
294+ socket, ` h2c ` if the ` Http2Session ` is not connected to a ` TLSSocket ` , or
295+ will return the value of the connected ` TLSSocket ` 's own ` alpnProtocol `
296+ property.
297+
286298#### http2session.close([ callback] )
287299<!-- YAML
288300added: REPLACEME
@@ -340,6 +352,18 @@ added: v8.4.0
340352Will be ` true ` if this ` Http2Session ` instance has been destroyed and must no
341353longer be used, otherwise ` false ` .
342354
355+ #### http2session.encrypted
356+ <!-- YAML
357+ added: REPLACEME
358+ -->
359+
360+ * Value: {boolean|undefined}
361+
362+ Value is ` undefined ` if the ` Http2Session ` session socket has not yet been
363+ connected, ` true ` if the ` Http2Session ` is connected with a ` TLSSocket ` ,
364+ and ` false ` if the ` Http2Session ` is connected to any other kind of socket
365+ or stream.
366+
343367#### http2session.goaway([ code, [ lastStreamID, [ opaqueData]]] )
344368<!-- YAML
345369added: REPLACEME
@@ -363,6 +387,17 @@ added: v8.4.0
363387A prototype-less object describing the current local settings of this
364388` Http2Session ` . The local settings are local to * this* ` Http2Session ` instance.
365389
390+ #### http2session.originSet
391+ <!-- YAML
392+ added: REPLACEME
393+ -->
394+
395+ * Value: {string[ ] |undefined}
396+
397+ If the ` Http2Session ` is connected to a ` TLSSocket ` , the ` originSet ` property
398+ will return an Array of origins for which the ` Http2Session ` may be
399+ considered authoritative.
400+
366401#### http2session.pendingSettingsAck
367402<!-- YAML
368403added: v8.4.0
@@ -1617,6 +1652,13 @@ changes:
16171652 * ` http2.constants.PADDING_STRATEGY_CALLBACK ` - Specifies that the user
16181653 provided ` options.selectPadding ` callback is to be used to determine the
16191654 amount of padding.
1655+ * ` http2.constants.PADDING_STRATEGY_ALIGNED ` - Will * attempt* to apply
1656+ enough padding to ensure that the total frame length, including the
1657+ 9-byte header, is a multiple of 8. For each frame, however, there is a
1658+ maxmimum allowed number of padding bytes that is determined by current
1659+ flow control state and settings. If this maximum is less than the
1660+ calculated amount needed to ensure alignment, the maximum will be used
1661+ and the total frame length will * not* necessarily be aligned at 8 bytes.
16201662 * ` peerMaxConcurrentStreams ` {number} Sets the maximum number of concurrent
16211663 streams for the remote peer as if a SETTINGS frame had been received. Will
16221664 be overridden if the remote peer sets its own value for.
@@ -1688,6 +1730,13 @@ changes:
16881730 * ` http2.constants.PADDING_STRATEGY_CALLBACK ` - Specifies that the user
16891731 provided ` options.selectPadding ` callback is to be used to determine the
16901732 amount of padding.
1733+ * ` http2.constants.PADDING_STRATEGY_ALIGNED ` - Will * attempt* to apply
1734+ enough padding to ensure that the total frame length, including the
1735+ 9-byte header, is a multiple of 8. For each frame, however, there is a
1736+ maxmimum allowed number of padding bytes that is determined by current
1737+ flow control state and settings. If this maximum is less than the
1738+ calculated amount needed to ensure alignment, the maximum will be used
1739+ and the total frame length will * not* necessarily be aligned at 8 bytes.
16911740 * ` peerMaxConcurrentStreams ` {number} Sets the maximum number of concurrent
16921741 streams for the remote peer as if a SETTINGS frame had been received. Will
16931742 be overridden if the remote peer sets its own value for
@@ -1768,6 +1817,13 @@ changes:
17681817 * ` http2.constants.PADDING_STRATEGY_CALLBACK ` - Specifies that the user
17691818 provided ` options.selectPadding ` callback is to be used to determine the
17701819 amount of padding.
1820+ * ` http2.constants.PADDING_STRATEGY_ALIGNED ` - Will * attempt* to apply
1821+ enough padding to ensure that the total frame length, including the
1822+ 9-byte header, is a multiple of 8. For each frame, however, there is a
1823+ maxmimum allowed number of padding bytes that is determined by current
1824+ flow control state and settings. If this maximum is less than the
1825+ calculated amount needed to ensure alignment, the maximum will be used
1826+ and the total frame length will * not* necessarily be aligned at 8 bytes.
17711827 * ` peerMaxConcurrentStreams ` {number} Sets the maximum number of concurrent
17721828 streams for the remote peer as if a SETTINGS frame had been received. Will
17731829 be overridden if the remote peer sets its own value for
0 commit comments