@@ -1505,8 +1505,7 @@ added: v8.4.0
1505
1505
* ` options ` {Object}
1506
1506
* ` allowHTTP1 ` {boolean} Incoming client connections that do not support
1507
1507
HTTP/2 will be downgraded to HTTP/1.x when set to ` true ` . The default value
1508
- is ` false ` . See the [ ` 'unknownProtocol' ` ] [ ] event. See [ ALPN
1509
- negotiation] ( #alpn-negotiation ) .
1508
+ is ` false ` . See the [ ` 'unknownProtocol' ` ] [ ] event. See [ ALPN negotiation] [ ] .
1510
1509
* ` maxDeflateDynamicTableSize ` {number} Sets the maximum dynamic table size
1511
1510
for deflating header fields. Defaults to 4Kib.
1512
1511
* ` maxSendHeaderBlockLength ` {number} Sets the maximum allowed size for a
@@ -2019,9 +2018,9 @@ added: v8.4.0
2019
2018
2020
2019
* ` error ` {Error}
2021
2020
2022
- Calls ` destroy() ` on the [ ` Http2Stream ` ] [ ] that received the [ ` ServerRequest ` ] [ ] . If
2023
- ` error ` is provided, an ` 'error' ` event is emitted and ` error ` is passed as an
2024
- argument to any listeners on the event.
2021
+ Calls ` destroy() ` on the [ ` Http2Stream ` ] [ ] that received
2022
+ the [ ` Http2ServerRequest ` ] [ ] . If ` error ` is provided, an ` 'error' ` event
2023
+ is emitted and ` error ` is passed as an argument to any listeners on the event.
2025
2024
2026
2025
It does nothing if the stream was already destroyed.
2027
2026
@@ -2655,7 +2654,7 @@ will result in a [`TypeError`][] being thrown.
2655
2654
added: v8.4.0
2656
2655
-->
2657
2656
2658
- Call [ ` stream .pushStream()` ] [ ] with the given headers, and wraps the
2657
+ Call [ ` http2stream .pushStream()` ] [ ] with the given headers, and wraps the
2659
2658
given newly created [ ` Http2Stream ` ] on ` Http2ServerRespose ` .
2660
2659
2661
2660
The callback will be called with an error with code ` ERR_HTTP2_STREAM_CLOSED `
@@ -2667,7 +2666,7 @@ if the stream is closed.
2667
2666
[ HTTP/2 ] : https://tools.ietf.org/html/rfc7540
2668
2667
[ HTTPS ] : https.html
2669
2668
[ Headers Object ] : #http2_headers_object
2670
- [ Http2Session and Sockets ] : #http2_http2sesion_and_sockets
2669
+ [ Http2Session and Sockets ] : #http2_http2session_and_sockets
2671
2670
[ Readable Stream ] : stream.html#stream_class_stream_readable
2672
2671
[ Settings Object ] : #http2_settings_object
2673
2672
[ Using options.selectPadding ] : #http2_using_options_selectpadding
@@ -2678,14 +2677,15 @@ if the stream is closed.
2678
2677
[ `ClientHttp2Stream` ] : #http2_class_clienthttp2stream
2679
2678
[ `Duplex` ] : stream.html#stream_class_stream_duplex
2680
2679
[ `EventEmitter` ] : events.html#events_class_eventemitter
2680
+ [ `Http2ServerRequest` ] : #http2_class_http2_http2serverrequest
2681
2681
[ `Http2Stream` ] : #http2_class_http2stream
2682
2682
[ `ServerHttp2Stream` ] : #http2_class_serverhttp2stream
2683
- [ `ServerRequest` ] : #http2_class_server_request
2684
2683
[ `TypeError` ] : errors.html#errors_class_typeerror
2685
2684
[ `http2.SecureServer` ] : #http2_class_http2secureserver
2686
2685
[ `http2.createSecureServer()` ] : #http2_createsecureserver_options_onrequesthandler
2687
2686
[ `http2.Server` ] : #http2_class_http2server
2688
2687
[ `http2.createServer()` ] : #http2_createserver_options_onrequesthandler
2688
+ [ `http2stream.pushStream()` ] : #http2_http2stream_pushstream_headers_options_callback
2689
2689
[ `net.Socket` ] : net.html#net_class_net_socket
2690
2690
[ `request.socket.getPeerCertificate()` ] : tls.html#tls_tlssocket_getpeercertificate_detailed
2691
2691
[ `response.end()` ] : #http2_response_end_data_encoding_callback
@@ -2695,7 +2695,6 @@ if the stream is closed.
2695
2695
[ `response.write(data, encoding)` ] : http.html#http_response_write_chunk_encoding_callback
2696
2696
[ `response.writeContinue()` ] : #http2_response_writecontinue
2697
2697
[ `response.writeHead()` ] : #http2_response_writehead_statuscode_statusmessage_headers
2698
- [ `stream.pushStream()` ] : #http2_stream-pushstream
2699
2698
[ `tls.TLSSocket` ] : tls.html#tls_class_tls_tlssocket
2700
2699
[ `tls.createServer()` ] : tls.html#tls_tls_createserver_options_secureconnectionlistener
2701
2700
[ error code ] : #error_codes
0 commit comments