1- # HTTP2
1+ # HTTP/2
22
33<!-- introduced_in=v8.4.0-->
44
@@ -230,7 +230,7 @@ added: v8.4.0
230230
231231The ` 'stream' ` event is emitted when a new ` Http2Stream ` is created. When
232232invoked, the handler function will receive a reference to the ` Http2Stream `
233- object, a [ HTTP2 Headers Object] [ ] , and numeric flags associated with the
233+ object, a [ HTTP/2 Headers Object] [ ] , and numeric flags associated with the
234234creation of the stream.
235235
236236``` js
@@ -383,7 +383,7 @@ Transmits a `GOAWAY` frame to the connected peer *without* shutting down the
383383added: v8.4.0
384384-->
385385
386- * Value: {HTTP2 Settings Object}
386+ * Value: {HTTP/2 Settings Object}
387387
388388A prototype-less object describing the current local settings of this
389389` Http2Session ` . The local settings are local to * this* ` Http2Session ` instance.
@@ -462,7 +462,7 @@ instance's underlying [`net.Socket`].
462462added: v8.4.0
463463-->
464464
465- * Value: {HTTP2 Settings Object}
465+ * Value: {HTTP/2 Settings Object}
466466
467467A prototype-less object describing the current remote settings of this
468468` Http2Session ` . The remote settings are set by the * connected* HTTP/2 peer.
@@ -533,8 +533,7 @@ An object describing the current status of this `Http2Session`.
533533added: v8.4.0
534534-->
535535
536- * ` settings ` {HTTP2 Settings Object}
537- * Returns {undefined}
536+ * ` settings ` {HTTP/2 Settings Object}
538537
539538Updates the current local settings for this ` Http2Session ` and sends a new
540539` SETTINGS ` frame to the connected HTTP/2 peer.
@@ -674,7 +673,7 @@ client.on('altsvc', (alt, origin, streamId) => {
674673added: v8.4.0
675674-->
676675
677- * ` headers ` {HTTP2 Headers Object}
676+ * ` headers ` {HTTP/2 Headers Object}
678677* ` options ` {Object}
679678 * ` endStream ` {boolean} ` true ` if the ` Http2Stream ` * writable* side should
680679 be closed initially, such as when sending a ` GET ` request that should not
@@ -862,7 +861,7 @@ added: v8.4.0
862861
863862The ` 'trailers' ` event is emitted when a block of headers associated with
864863trailing header fields is received. The listener callback is passed the
865- [ HTTP2 Headers Object] [ ] and flags associated with the headers.
864+ [ HTTP/2 Headers Object] [ ] and flags associated with the headers.
866865
867866``` js
868867stream .on (' trailers' , (headers , flags ) => {
@@ -961,7 +960,7 @@ calling `http2stream.close()`, or `http2stream.destroy()`. Will be
961960added: REPLACEME
962961-->
963962
964- * Value: {HTTP2 Headers Object}
963+ * Value: {HTTP/2 Headers Object}
965964
966965An object containing the outbound headers sent for this ` Http2Stream ` .
967966
@@ -970,7 +969,7 @@ An object containing the outbound headers sent for this `Http2Stream`.
970969added: REPLACEME
971970-->
972971
973- * Value: {HTTP2 Headers Object[ ] }
972+ * Value: {HTTP/2 Headers Object[ ] }
974973
975974An array of objects containing the outbound informational (additional) headers
976975sent for this ` Http2Stream ` .
@@ -980,7 +979,7 @@ sent for this `Http2Stream`.
980979added: REPLACEME
981980-->
982981
983- * Value: {HTTP2 Headers Object}
982+ * Value: {HTTP/2 Headers Object}
984983
985984An object containing the outbound trailers sent for this this ` HttpStream ` .
986985
@@ -1063,7 +1062,7 @@ added: v8.4.0
10631062
10641063The ` 'headers' ` event is emitted when an additional block of headers is received
10651064for a stream, such as when a block of ` 1xx ` informational headers is received.
1066- The listener callback is passed the [ HTTP2 Headers Object] [ ] and flags
1065+ The listener callback is passed the [ HTTP/2 Headers Object] [ ] and flags
10671066associated with the headers.
10681067
10691068``` js
@@ -1078,7 +1077,7 @@ added: v8.4.0
10781077-->
10791078
10801079The ` 'push' ` event is emitted when response headers for a Server Push stream
1081- are received. The listener callback is passed the [ HTTP2 Headers Object] [ ] and
1080+ are received. The listener callback is passed the [ HTTP/2 Headers Object] [ ] and
10821081flags associated with the headers.
10831082
10841083``` js
@@ -1095,7 +1094,7 @@ added: v8.4.0
10951094The ` 'response' ` event is emitted when a response ` HEADERS ` frame has been
10961095received for this stream from the connected HTTP/2 server. The listener is
10971096invoked with two arguments: an Object containing the received
1098- [ HTTP2 Headers Object] [ ] , and flags associated with the headers.
1097+ [ HTTP/2 Headers Object] [ ] , and flags associated with the headers.
10991098
11001099For example:
11011100
@@ -1125,8 +1124,7 @@ provide additional methods such as `http2stream.pushStream()` and
11251124added: v8.4.0
11261125-->
11271126
1128- * ` headers ` {HTTP2 Headers Object}
1129- * Returns: {undefined}
1127+ * ` headers ` {HTTP/2 Headers Object}
11301128
11311129Sends an additional informational ` HEADERS ` frame to the connected HTTP/2 peer.
11321130
@@ -1156,7 +1154,7 @@ accepts push streams, `false` otherwise. Settings are the same for every
11561154added: v8.4.0
11571155-->
11581156
1159- * ` headers ` {HTTP2 Headers Object}
1157+ * ` headers ` {HTTP/2 Headers Object}
11601158* ` options ` {Object}
11611159 * ` exclusive ` {boolean} When ` true ` and ` parent ` identifies a parent Stream,
11621160 the created stream is made the sole direct dependency of the parent, with
@@ -1168,7 +1166,7 @@ added: v8.4.0
11681166 initiated.
11691167 * ` err ` {Error}
11701168 * ` pushStream ` {ServerHttp2Stream} The returned pushStream object.
1171- * ` headers ` {HTTP2 Headers Object} Headers object the pushStream was
1169+ * ` headers ` {HTTP/2 Headers Object} Headers object the pushStream was
11721170 initiated with.
11731171* Returns: {undefined}
11741172
@@ -1199,7 +1197,7 @@ a `weight` value to `http2stream.priority` with the `silent` option set to
11991197added: v8.4.0
12001198-->
12011199
1202- * ` headers ` {HTTP2 Headers Object}
1200+ * ` headers ` {HTTP/2 Headers Object}
12031201* ` options ` {Object}
12041202 * ` endStream ` {boolean} Set to ` true ` to indicate that the response will not
12051203 include payload data.
@@ -1245,7 +1243,7 @@ added: v8.4.0
12451243-->
12461244
12471245* ` fd ` {number} A readable file descriptor.
1248- * ` headers ` {HTTP2 Headers Object}
1246+ * ` headers ` {HTTP/2 Headers Object}
12491247* ` options ` {Object}
12501248 * ` statCheck ` {Function}
12511249 * ` getTrailers ` {Function} Callback function invoked to collect trailer
@@ -1336,7 +1334,7 @@ added: v8.4.0
13361334-->
13371335
13381336* ` path ` {string|Buffer|URL}
1339- * ` headers ` {HTTP2 Headers Object}
1337+ * ` headers ` {HTTP/2 Headers Object}
13401338* ` options ` {Object}
13411339 * ` statCheck ` {Function}
13421340 * ` onError ` {Function} Callback function invoked in the case of an
@@ -1716,7 +1714,7 @@ changes:
17161714 * ` selectPadding ` {Function} When ` options.paddingStrategy ` is equal to
17171715 ` http2.constants.PADDING_STRATEGY_CALLBACK ` , provides the callback function
17181716 used to determine the padding. See [ Using options.selectPadding] [ ] .
1719- * ` settings ` {HTTP2 Settings Object} The initial settings to send to the
1717+ * ` settings ` {HTTP/2 Settings Object} The initial settings to send to the
17201718 remote peer upon connection.
17211719 * ` Http1IncomingMessage ` {http.IncomingMessage} Specifies the IncomingMessage
17221720 class to used for HTTP/1 fallback. Useful for extending the original
@@ -1825,7 +1823,7 @@ changes:
18251823 * ` selectPadding ` {Function} When ` options.paddingStrategy ` is equal to
18261824 ` http2.constants.PADDING_STRATEGY_CALLBACK ` , provides the callback function
18271825 used to determine the padding. See [ Using options.selectPadding] [ ] .
1828- * ` settings ` {HTTP2 Settings Object} The initial settings to send to the
1826+ * ` settings ` {HTTP/2 Settings Object} The initial settings to send to the
18291827 remote peer upon connection.
18301828 * ...: Any [ ` tls.createServer() ` ] [ ] options can be provided. For
18311829 servers, the identity options (` pfx ` or ` key ` /` cert ` ) are usually required.
@@ -1921,7 +1919,7 @@ changes:
19211919 * ` selectPadding ` {Function} When ` options.paddingStrategy ` is equal to
19221920 ` http2.constants.PADDING_STRATEGY_CALLBACK ` , provides the callback function
19231921 used to determine the padding. See [ Using options.selectPadding] [ ] .
1924- * ` settings ` {HTTP2 Settings Object} The initial settings to send to the
1922+ * ` settings ` {HTTP/2 Settings Object} The initial settings to send to the
19251923 remote peer upon connection.
19261924 * ` createConnection ` {Function} An optional callback that receives the ` URL `
19271925 instance passed to ` connect ` and the ` options ` object, and returns any
@@ -1974,7 +1972,7 @@ a given number of milliseconds set using `http2server.setTimeout()`.
19741972added: v8.4.0
19751973-->
19761974
1977- * Returns: {HTTP2 Settings Object}
1975+ * Returns: {HTTP/2 Settings Object}
19781976
19791977Returns an object containing the default settings for an ` Http2Session `
19801978instance. This method returns a new object instance every time it is called
@@ -1985,7 +1983,7 @@ so instances returned may be safely modified for use.
19851983added: v8.4.0
19861984-->
19871985
1988- * ` settings ` {HTTP2 Settings Object}
1986+ * ` settings ` {HTTP/2 Settings Object}
19891987* Returns: {Buffer}
19901988
19911989Returns a ` Buffer ` instance containing serialized representation of the given
@@ -2007,9 +2005,9 @@ added: v8.4.0
20072005-->
20082006
20092007* ` buf ` {Buffer|Uint8Array} The packed settings.
2010- * Returns: {HTTP2 Settings Object}
2008+ * Returns: {HTTP/2 Settings Object}
20112009
2012- Returns a [ HTTP2 Settings Object] [ ] containing the deserialized settings from
2010+ Returns a [ HTTP/2 Settings Object] [ ] containing the deserialized settings from
20132011the given ` Buffer ` as generated by ` http2.getPackedSettings() ` .
20142012
20152013### Headers Object
@@ -2274,7 +2272,7 @@ In order to create a mixed [HTTPS][] and HTTP/2 server, refer to the
22742272[ ALPN negotiation] [ ] section.
22752273Upgrading from non-tls HTTP/1 servers is not supported.
22762274
2277- The HTTP2 compatibility API is composed of [ ` Http2ServerRequest ` ] ( ) and
2275+ The HTTP/2 compatibility API is composed of [ ` Http2ServerRequest ` ] ( ) and
22782276[ ` Http2ServerResponse ` ] ( ) . They aim at API compatibility with HTTP/1, but
22792277they do not hide the differences between the protocols. As an example,
22802278the status message for HTTP codes is ignored.
@@ -2382,7 +2380,7 @@ Example:
23822380console .log (request .headers );
23832381```
23842382
2385- See [ HTTP2 Headers Object] [ ] .
2383+ See [ HTTP/2 Headers Object] [ ] .
23862384
23872385* Note* : In HTTP/2, the request path, hostname, protocol, and method are
23882386represented as special headers prefixed with the ` : ` character (e.g. ` ':path' ` ).
@@ -3105,8 +3103,8 @@ following additional properties:
31053103[ HTTP/1 ] : http.html
31063104[ HTTP/2 ] : https://tools.ietf.org/html/rfc7540
31073105[ HTTP/2 Unencrypted ] : https://http2.github.io/faq/#does-http2-require-encryption
3108- [ HTTP2 Headers Object] : #http2_headers_object
3109- [ HTTP2 Settings Object] : #http2_settings_object
3106+ [ HTTP/2 Headers Object] : #http2_headers_object
3107+ [ HTTP/2 Settings Object] : #http2_settings_object
31103108[ HTTPS ] : https.html
31113109[ Http2Session and Sockets ] : #http2_http2session_and_sockets
31123110[ Performance Observer ] : perf_hooks.html
0 commit comments