@@ -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
0 commit comments