| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 91b4167 commit 35d35d7
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,4 +1,4 @@ | |||
| 1 | - # HTTP2 | ||
| 1 | + # HTTP/2 | ||
| 2 | 2 | ||
| 3 | 3 | <!--introduced_in=v8.4.0--> | |
| 4 | 4 | ||
@@ -230,7 +230,7 @@ added: v8.4.0 | |||
| 230 | 230 | ||
| 231 | 231 | The `'stream'` event is emitted when a new `Http2Stream` is created. When | |
| 232 | 232 | invoked, 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 | ||
| 234 | 234 | creation of the stream. | |
| 235 | 235 | ||
| 236 | 236 | ```js | |
@@ -383,7 +383,7 @@ Transmits a `GOAWAY` frame to the connected peer *without* shutting down the | |||
| 383 | 383 | added: v8.4.0 | |
| 384 | 384 | --> | |
| 385 | 385 | ||
| 386 | - * Value: {HTTP2 Settings Object} | ||
| 386 | + * Value: {HTTP/2 Settings Object} | ||
| 387 | 387 | ||
| 388 | 388 | A prototype-less object describing the current local settings of this | |
| 389 | 389 | `Http2Session`. The local settings are local to *this* `Http2Session` instance. | |
@@ -462,7 +462,7 @@ instance's underlying [`net.Socket`]. | |||
| 462 | 462 | added: v8.4.0 | |
| 463 | 463 | --> | |
| 464 | 464 | ||
| 465 | - * Value: {HTTP2 Settings Object} | ||
| 465 | + * Value: {HTTP/2 Settings Object} | ||
| 466 | 466 | ||
| 467 | 467 | A prototype-less object describing the current remote settings of this | |
| 468 | 468 | `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`. | |||
| 533 | 533 | added: v8.4.0 | |
| 534 | 534 | --> | |
| 535 | 535 | ||
| 536 | - * `settings` {HTTP2 Settings Object} | ||
| 537 | - * Returns {undefined} | ||
| 536 | + * `settings` {HTTP/2 Settings Object} | ||
| 538 | 537 | ||
| 539 | 538 | Updates the current local settings for this `Http2Session` and sends a new | |
| 540 | 539 | `SETTINGS` frame to the connected HTTP/2 peer. | |
@@ -674,7 +673,7 @@ client.on('altsvc', (alt, origin, streamId) => { | |||
| 674 | 673 | added: v8.4.0 | |
| 675 | 674 | --> | |
| 676 | 675 | ||
| 677 | - * `headers` {HTTP2 Headers Object} | ||
| 676 | + * `headers` {HTTP/2 Headers Object} | ||
| 678 | 677 | * `options` {Object} | |
| 679 | 678 | * `endStream` {boolean} `true` if the `Http2Stream` *writable* side should | |
| 680 | 679 | be closed initially, such as when sending a `GET` request that should not | |
@@ -862,7 +861,7 @@ added: v8.4.0 | |||
| 862 | 861 | ||
| 863 | 862 | The `'trailers'` event is emitted when a block of headers associated with | |
| 864 | 863 | trailing 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. | ||
| 866 | 865 | ||
| 867 | 866 | ```js | |
| 868 | 867 | stream.on('trailers', (headers, flags) => { | |
@@ -961,7 +960,7 @@ calling `http2stream.close()`, or `http2stream.destroy()`. Will be | |||
| 961 | 960 | added: REPLACEME | |
| 962 | 961 | --> | |
| 963 | 962 | ||
| 964 | - * Value: {HTTP2 Headers Object} | ||
| 963 | + * Value: {HTTP/2 Headers Object} | ||
| 965 | 964 | ||
| 966 | 965 | An object containing the outbound headers sent for this `Http2Stream`. | |
| 967 | 966 | ||
@@ -970,7 +969,7 @@ An object containing the outbound headers sent for this `Http2Stream`. | |||
| 970 | 969 | added: REPLACEME | |
| 971 | 970 | --> | |
| 972 | 971 | ||
| 973 | - * Value: {HTTP2 Headers Object[]} | ||
| 972 | + * Value: {HTTP/2 Headers Object[]} | ||
| 974 | 973 | ||
| 975 | 974 | An array of objects containing the outbound informational (additional) headers | |
| 976 | 975 | sent for this `Http2Stream`. | |
@@ -980,7 +979,7 @@ sent for this `Http2Stream`. | |||
| 980 | 979 | added: REPLACEME | |
| 981 | 980 | --> | |
| 982 | 981 | ||
| 983 | - * Value: {HTTP2 Headers Object} | ||
| 982 | + * Value: {HTTP/2 Headers Object} | ||
| 984 | 983 | ||
| 985 | 984 | An object containing the outbound trailers sent for this this `HttpStream`. | |
| 986 | 985 | ||
@@ -1063,7 +1062,7 @@ added: v8.4.0 | |||
| 1063 | 1062 | ||
| 1064 | 1063 | The `'headers'` event is emitted when an additional block of headers is received | |
| 1065 | 1064 | for 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 | ||
| 1067 | 1066 | associated with the headers. | |
| 1068 | 1067 | ||
| 1069 | 1068 | ```js | |
@@ -1078,7 +1077,7 @@ added: v8.4.0 | |||
| 1078 | 1077 | --> | |
| 1079 | 1078 | ||
| 1080 | 1079 | The `'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 | ||
| 1082 | 1081 | flags associated with the headers. | |
| 1083 | 1082 | ||
| 1084 | 1083 | ```js | |
@@ -1095,7 +1094,7 @@ added: v8.4.0 | |||
| 1095 | 1094 | The `'response'` event is emitted when a response `HEADERS` frame has been | |
| 1096 | 1095 | received for this stream from the connected HTTP/2 server. The listener is | |
| 1097 | 1096 | invoked 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. | ||
| 1099 | 1098 | ||
| 1100 | 1099 | For example: | |
| 1101 | 1100 | ||
@@ -1125,8 +1124,7 @@ provide additional methods such as `http2stream.pushStream()` and | |||
| 1125 | 1124 | added: v8.4.0 | |
| 1126 | 1125 | --> | |
| 1127 | 1126 | ||
| 1128 | - * `headers` {HTTP2 Headers Object} | ||
| 1129 | - * Returns: {undefined} | ||
| 1127 | + * `headers` {HTTP/2 Headers Object} | ||
| 1130 | 1128 | ||
| 1131 | 1129 | Sends an additional informational `HEADERS` frame to the connected HTTP/2 peer. | |
| 1132 | 1130 | ||
@@ -1156,7 +1154,7 @@ accepts push streams, `false` otherwise. Settings are the same for every | |||
| 1156 | 1154 | added: v8.4.0 | |
| 1157 | 1155 | --> | |
| 1158 | 1156 | ||
| 1159 | - * `headers` {HTTP2 Headers Object} | ||
| 1157 | + * `headers` {HTTP/2 Headers Object} | ||
| 1160 | 1158 | * `options` {Object} | |
| 1161 | 1159 | * `exclusive` {boolean} When `true` and `parent` identifies a parent Stream, | |
| 1162 | 1160 | the created stream is made the sole direct dependency of the parent, with | |
@@ -1168,7 +1166,7 @@ added: v8.4.0 | |||
| 1168 | 1166 | initiated. | |
| 1169 | 1167 | * `err` {Error} | |
| 1170 | 1168 | * `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 | ||
| 1172 | 1170 | initiated with. | |
| 1173 | 1171 | * Returns: {undefined} | |
| 1174 | 1172 | ||
@@ -1199,7 +1197,7 @@ a `weight` value to `http2stream.priority` with the `silent` option set to | |||
| 1199 | 1197 | added: v8.4.0 | |
| 1200 | 1198 | --> | |
| 1201 | 1199 | ||
| 1202 | - * `headers` {HTTP2 Headers Object} | ||
| 1200 | + * `headers` {HTTP/2 Headers Object} | ||
| 1203 | 1201 | * `options` {Object} | |
| 1204 | 1202 | * `endStream` {boolean} Set to `true` to indicate that the response will not | |
| 1205 | 1203 | include payload data. | |
@@ -1245,7 +1243,7 @@ added: v8.4.0 | |||
| 1245 | 1243 | --> | |
| 1246 | 1244 | ||
| 1247 | 1245 | * `fd` {number} A readable file descriptor. | |
| 1248 | - * `headers` {HTTP2 Headers Object} | ||
| 1246 | + * `headers` {HTTP/2 Headers Object} | ||
| 1249 | 1247 | * `options` {Object} | |
| 1250 | 1248 | * `statCheck` {Function} | |
| 1251 | 1249 | * `getTrailers` {Function} Callback function invoked to collect trailer | |
@@ -1336,7 +1334,7 @@ added: v8.4.0 | |||
| 1336 | 1334 | --> | |
| 1337 | 1335 | ||
| 1338 | 1336 | * `path` {string|Buffer|URL} | |
| 1339 | - * `headers` {HTTP2 Headers Object} | ||
| 1337 | + * `headers` {HTTP/2 Headers Object} | ||
| 1340 | 1338 | * `options` {Object} | |
| 1341 | 1339 | * `statCheck` {Function} | |
| 1342 | 1340 | * `onError` {Function} Callback function invoked in the case of an | |
@@ -1716,7 +1714,7 @@ changes: | |||
| 1716 | 1714 | * `selectPadding` {Function} When `options.paddingStrategy` is equal to | |
| 1717 | 1715 | `http2.constants.PADDING_STRATEGY_CALLBACK`, provides the callback function | |
| 1718 | 1716 | 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 | ||
| 1720 | 1718 | remote peer upon connection. | |
| 1721 | 1719 | * `Http1IncomingMessage` {http.IncomingMessage} Specifies the IncomingMessage | |
| 1722 | 1720 | class to used for HTTP/1 fallback. Useful for extending the original | |
@@ -1825,7 +1823,7 @@ changes: | |||
| 1825 | 1823 | * `selectPadding` {Function} When `options.paddingStrategy` is equal to | |
| 1826 | 1824 | `http2.constants.PADDING_STRATEGY_CALLBACK`, provides the callback function | |
| 1827 | 1825 | 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 | ||
| 1829 | 1827 | remote peer upon connection. | |
| 1830 | 1828 | * ...: Any [`tls.createServer()`][] options can be provided. For | |
| 1831 | 1829 | servers, the identity options (`pfx` or `key`/`cert`) are usually required. | |
@@ -1921,7 +1919,7 @@ changes: | |||
| 1921 | 1919 | * `selectPadding` {Function} When `options.paddingStrategy` is equal to | |
| 1922 | 1920 | `http2.constants.PADDING_STRATEGY_CALLBACK`, provides the callback function | |
| 1923 | 1921 | 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 | ||
| 1925 | 1923 | remote peer upon connection. | |
| 1926 | 1924 | * `createConnection` {Function} An optional callback that receives the `URL` | |
| 1927 | 1925 | instance passed to `connect` and the `options` object, and returns any | |
@@ -1974,7 +1972,7 @@ a given number of milliseconds set using `http2server.setTimeout()`. | |||
| 1974 | 1972 | added: v8.4.0 | |
| 1975 | 1973 | --> | |
| 1976 | 1974 | ||
| 1977 | - * Returns: {HTTP2 Settings Object} | ||
| 1975 | + * Returns: {HTTP/2 Settings Object} | ||
| 1978 | 1976 | ||
| 1979 | 1977 | Returns an object containing the default settings for an `Http2Session` | |
| 1980 | 1978 | instance. 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. | |||
| 1985 | 1983 | added: v8.4.0 | |
| 1986 | 1984 | --> | |
| 1987 | 1985 | ||
| 1988 | - * `settings` {HTTP2 Settings Object} | ||
| 1986 | + * `settings` {HTTP/2 Settings Object} | ||
| 1989 | 1987 | * Returns: {Buffer} | |
| 1990 | 1988 | ||
| 1991 | 1989 | Returns a `Buffer` instance containing serialized representation of the given | |
@@ -2007,9 +2005,9 @@ added: v8.4.0 | |||
| 2007 | 2005 | --> | |
| 2008 | 2006 | ||
| 2009 | 2007 | * `buf` {Buffer|Uint8Array} The packed settings. | |
| 2010 | - * Returns: {HTTP2 Settings Object} | ||
| 2008 | + * Returns: {HTTP/2 Settings Object} | ||
| 2011 | 2009 | ||
| 2012 | - Returns a [HTTP2 Settings Object][] containing the deserialized settings from | ||
| 2010 | + Returns a [HTTP/2 Settings Object][] containing the deserialized settings from | ||
| 2013 | 2011 | the given `Buffer` as generated by `http2.getPackedSettings()`. | |
| 2014 | 2012 | ||
| 2015 | 2013 | ### Headers Object | |
@@ -2274,7 +2272,7 @@ In order to create a mixed [HTTPS][] and HTTP/2 server, refer to the | |||
| 2274 | 2272 | [ALPN negotiation][] section. | |
| 2275 | 2273 | Upgrading from non-tls HTTP/1 servers is not supported. | |
| 2276 | 2274 | ||
| 2277 | - The HTTP2 compatibility API is composed of [`Http2ServerRequest`]() and | ||
| 2275 | + The HTTP/2 compatibility API is composed of [`Http2ServerRequest`]() and | ||
| 2278 | 2276 | [`Http2ServerResponse`](). They aim at API compatibility with HTTP/1, but | |
| 2279 | 2277 | they do not hide the differences between the protocols. As an example, | |
| 2280 | 2278 | the status message for HTTP codes is ignored. | |
@@ -2382,7 +2380,7 @@ Example: | |||
| 2382 | 2380 | console.log(request.headers); | |
| 2383 | 2381 | ``` | |
| 2384 | 2382 | ||
| 2385 | - See [HTTP2 Headers Object][]. | ||
| 2383 | + See [HTTP/2 Headers Object][]. | ||
| 2386 | 2384 | ||
| 2387 | 2385 | *Note*: In HTTP/2, the request path, hostname, protocol, and method are | |
| 2388 | 2386 | represented as special headers prefixed with the `:` character (e.g. `':path'`). | |
@@ -3105,8 +3103,8 @@ following additional properties: | |||
| 3105 | 3103 | [HTTP/1]: http.html | |
| 3106 | 3104 | [HTTP/2]: https://tools.ietf.org/html/rfc7540 | |
| 3107 | 3105 | [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 | ||
| 3110 | 3108 | [HTTPS]: https.html | |
| 3111 | 3109 | [Http2Session and Sockets]: #http2_http2session_and_sockets | |
| 3112 | 3110 | [Performance Observer]: perf_hooks.html | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -54,8 +54,8 @@ const typeMap = { | |||
| 54 | 54 | 'http.ServerResponse': 'http.html#http_class_http_serverresponse', | |
| 55 | 55 | ||
| 56 | 56 | 'ClientHttp2Stream': 'http2.html#http2_class_clienthttp2stream', | |
| 57 | - 'HTTP2 Headers Object': 'http2.html#http2_headers_object', | ||
| 58 | - 'HTTP2 Settings Object': 'http2.html#http2_settings_object', | ||
| 57 | + 'HTTP/2 Headers Object': 'http2.html#http2_headers_object', | ||
| 58 | + 'HTTP/2 Settings Object': 'http2.html#http2_settings_object', | ||
| 59 | 59 | 'http2.Http2ServerRequest': 'http2.html#http2_class_http2_http2serverrequest', | |
| 60 | 60 | 'http2.Http2ServerResponse': | |
| 61 | 61 | 'http2.html#http2_class_http2_http2serverresponse', | |
| Back | FazBrowse Home | New Git URL |
0 commit comments