| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1850,8 +1850,8 @@ const server = http2.createServer((req, res) => { | |||
| 1850 | 1850 | }); | |
| 1851 | 1851 | ``` | |
| 1852 | 1852 | ||
| 1853 | - In order to create a mixed [HTTPS](https) and HTTP/2 server, refer to the | ||
| 1854 | - [ALPN negotiation](alpn-negotiation) section. | ||
| 1853 | + In order to create a mixed [HTTPS][] and HTTP/2 server, refer to the | ||
| 1854 | + [ALPN negotiation][] section. | ||
| 1855 | 1855 | Upgrading from non-tls HTTP/1 servers is not supported. | |
| 1856 | 1856 | ||
| 1857 | 1857 | The HTTP2 compatibility API is composed of [`Http2ServerRequest`]() and | |
@@ -1861,10 +1861,10 @@ the status message for HTTP codes is ignored. | |||
| 1861 | 1861 | ||
| 1862 | 1862 | ### ALPN negotiation | |
| 1863 | 1863 | ||
| 1864 | - ALPN negotiation allows to support both [HTTPS](https) and HTTP/2 over | ||
| 1864 | + ALPN negotiation allows to support both [HTTPS][] and HTTP/2 over | ||
| 1865 | 1865 | the same socket. The `req` and `res` objects can be either HTTP/1 or | |
| 1866 | 1866 | HTTP/2, and an application **must** restrict itself to the public API of | |
| 1867 | - [HTTP/1](), and detect if it is possible to use the more advanced | ||
| 1867 | + [HTTP/1][], and detect if it is possible to use the more advanced | ||
| 1868 | 1868 | features of HTTP/2. | |
| 1869 | 1869 | ||
| 1870 | 1870 | The following example creates a server that supports both protocols: | |
@@ -1925,7 +1925,7 @@ abnormally aborted in mid-communication. | |||
| 1925 | 1925 | added: REPLACEME | |
| 1926 | 1926 | --> | |
| 1927 | 1927 | ||
| 1928 | - Indicates that the underlying [`Http2Stream`]() was closed. | ||
| 1928 | + Indicates that the underlying [`Http2Stream`][] was closed. | ||
| 1929 | 1929 | Just like `'end'`, this event occurs only once per response. | |
| 1930 | 1930 | ||
| 1931 | 1931 | #### request.destroy([error]) | |
@@ -1935,7 +1935,7 @@ added: REPLACEME | |||
| 1935 | 1935 | ||
| 1936 | 1936 | * `error` {Error} | |
| 1937 | 1937 | ||
| 1938 | - Calls `destroy()` on the [Http2Stream]() that received the `ServerRequest`. If | ||
| 1938 | + Calls `destroy()` on the [`Http2Stream`][] that received the [`ServerRequest`][]. If | ||
| 1939 | 1939 | `error` is provided, an `'error'` event is emitted and `error` is passed as an | |
| 1940 | 1940 | argument to any listeners on the event. | |
| 1941 | 1941 | ||
@@ -2570,21 +2570,21 @@ will result in a [`TypeError`][] being thrown. | |||
| 2570 | 2570 | added: REPLACEME | |
| 2571 | 2571 | --> | |
| 2572 | 2572 | ||
| 2573 | - Call [`stream.pushStream()`]() with the given headers, and wraps the | ||
| 2573 | + Call [`stream.pushStream()`][] with the given headers, and wraps the | ||
| 2574 | 2574 | given newly created [`Http2Stream`] on `Http2ServerRespose`. | |
| 2575 | 2575 | ||
| 2576 | 2576 | The callback will be called with an error with code `ERR_HTTP2_STREAM_CLOSED` | |
| 2577 | 2577 | if the stream is closed. | |
| 2578 | 2578 | ||
| 2579 | 2579 | [HTTP/2]: https://tools.ietf.org/html/rfc7540 | |
| 2580 | 2580 | [HTTP/1]: http.html | |
| 2581 | - [https]: https.html | ||
| 2581 | + [HTTPS]: https.html | ||
| 2582 | 2582 | [`net.Socket`]: net.html | |
| 2583 | 2583 | [`tls.TLSSocket`]: tls.html | |
| 2584 | 2584 | [`tls.createServer()`]: tls.html#tls_tls_createserver_options_secureconnectionlistener | |
| 2585 | 2585 | [`ClientHttp2Stream`]: #http2_class_clienthttp2stream | |
| 2586 | 2586 | [Compatibility API]: #http2_compatibility_api | |
| 2587 | - [alpn-negotiation]: #http2_alpn_negotiation | ||
| 2587 | + [ALPN negotiation]: #http2_alpn_negotiation | ||
| 2588 | 2588 | [`Duplex`]: stream.html#stream_class_stream_duplex | |
| 2589 | 2589 | [Headers Object]: #http2_headers_object | |
| 2590 | 2590 | [`Http2Stream`]: #http2_class_http2stream | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -342,15 +342,15 @@ to be added to the error object. If the optional parameter is NULL | |||
| 342 | 342 | then no code will be associated with the error. If a code is provided, | |
| 343 | 343 | the name associated with the error is also updated to be: | |
| 344 | 344 | ||
| 345 | - ``` | ||
| 345 | + ```text | ||
| 346 | 346 | originalName [code] | |
| 347 | 347 | ``` | |
| 348 | 348 | ||
| 349 | 349 | where originalName is the original name associated with the error | |
| 350 | 350 | and code is the code that was provided. For example if the code | |
| 351 | 351 | is 'ERR_ERROR_1' and a TypeError is being created the name will be: | |
| 352 | 352 | ||
| 353 | - ``` | ||
| 353 | + ```text | ||
| 354 | 354 | TypeError [ERR_ERROR_1] | |
| 355 | 355 | ``` | |
| 356 | 356 | ||
@@ -3342,6 +3342,8 @@ support it: | |||
| 3342 | 3342 | * If the function is not available, provide an alternate implementation | |
| 3343 | 3343 | that does not use the function. | |
| 3344 | 3344 | ||
| 3345 | + <!-- it's very convenient to have all the anchors indexed --> | ||
| 3346 | + <!--lint disable no-unused-definitions remark-lint--> | ||
| 3345 | 3347 | [Asynchronous Operations]: #n_api_asynchronous_operations | |
| 3346 | 3348 | [Basic N-API Data Types]: #n_api_basic_n_api_data_types | |
| 3347 | 3349 | [ECMAScript Language Specification]: https://tc39.github.io/ecma262/ | |
| Back | FazBrowse Home | New Git URL |
0 commit comments