@@ -769,7 +769,7 @@ added: v10.12.0
769
769
770
770
* ` origins ` {string[ ] }
771
771
772
- The ` 'origin' ` event is emitted whenever an ` ORIGIN ` frame is received by
772
+ The ` 'origin' ` event is emitted whenever an ` ORIGIN ` frame is received by
773
773
the client. The event is emitted with an array of ` origin ` strings. The
774
774
` http2session.originSet ` will be updated to include the received
775
775
origins.
@@ -1193,7 +1193,7 @@ added: v10.0.0
1193
1193
1194
1194
Sends a trailing ` HEADERS ` frame to the connected HTTP/2 peer. This method
1195
1195
will cause the ` Http2Stream ` to be immediately closed and must only be
1196
- called after the ` 'wantTrailers' ` event has been emitted. When sending a
1196
+ called after the ` 'wantTrailers' ` event has been emitted. When sending a
1197
1197
request or sending a response, the ` options.waitForTrailers ` option must be set
1198
1198
in order to keep the ` Http2Stream ` open after the final ` DATA ` frame so that
1199
1199
trailers can be sent.
@@ -1729,7 +1729,7 @@ added: v8.4.0
1729
1729
-->
1730
1730
* ` callback ` {Function}
1731
1731
1732
- Stops the server from accepting new connections. See [ ` net.Server.close() ` ] [ ] .
1732
+ Stops the server from accepting new connections. See [ ` net.Server.close() ` ] [ ] .
1733
1733
1734
1734
Note that this is not analogous to restricting new requests since HTTP/2
1735
1735
connections are persistent. To achieve a similar graceful shutdown behavior,
@@ -1871,7 +1871,7 @@ added: v8.4.0
1871
1871
-->
1872
1872
* ` callback ` {Function}
1873
1873
1874
- Stops the server from accepting new connections. See [ ` tls.Server.close() ` ] [ ] .
1874
+ Stops the server from accepting new connections. See [ ` tls.Server.close() ` ] [ ] .
1875
1875
1876
1876
Note that this is not analogous to restricting new requests since HTTP/2
1877
1877
connections are persistent. To achieve a similar graceful shutdown behavior,
@@ -2531,7 +2531,7 @@ const server = http2.createServer({ settings });
2531
2531
2532
2532
Once the client receives the ` SETTINGS ` frame from the server indicating that
2533
2533
the extended CONNECT may be used, it may send ` CONNECT ` requests that use the
2534
- ` ':protocol' ` HTTP/2 pseudo-header:
2534
+ ` ':protocol' ` HTTP/2 pseudo-header:
2535
2535
2536
2536
``` js
2537
2537
const http2 = require (' http2' );
0 commit comments