diff options
Diffstat (limited to 'doc/api/http2.md')
-rw-r--r-- | doc/api/http2.md | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/doc/api/http2.md b/doc/api/http2.md index f0147504b3..461b0018a5 100644 --- a/doc/api/http2.md +++ b/doc/api/http2.md @@ -769,7 +769,7 @@ added: v10.12.0 * `origins` {string[]} -The `'origin'` event is emitted whenever an `ORIGIN` frame is received by +The `'origin'` event is emitted whenever an `ORIGIN` frame is received by the client. The event is emitted with an array of `origin` strings. The `http2session.originSet` will be updated to include the received origins. @@ -1193,7 +1193,7 @@ added: v10.0.0 Sends a trailing `HEADERS` frame to the connected HTTP/2 peer. This method will cause the `Http2Stream` to be immediately closed and must only be -called after the `'wantTrailers'` event has been emitted. When sending a +called after the `'wantTrailers'` event has been emitted. When sending a request or sending a response, the `options.waitForTrailers` option must be set in order to keep the `Http2Stream` open after the final `DATA` frame so that trailers can be sent. @@ -1729,7 +1729,7 @@ added: v8.4.0 --> * `callback` {Function} -Stops the server from accepting new connections. See [`net.Server.close()`][]. +Stops the server from accepting new connections. See [`net.Server.close()`][]. Note that this is not analogous to restricting new requests since HTTP/2 connections are persistent. To achieve a similar graceful shutdown behavior, @@ -1871,7 +1871,7 @@ added: v8.4.0 --> * `callback` {Function} -Stops the server from accepting new connections. See [`tls.Server.close()`][]. +Stops the server from accepting new connections. See [`tls.Server.close()`][]. Note that this is not analogous to restricting new requests since HTTP/2 connections are persistent. To achieve a similar graceful shutdown behavior, @@ -2531,7 +2531,7 @@ const server = http2.createServer({ settings }); Once the client receives the `SETTINGS` frame from the server indicating that the extended CONNECT may be used, it may send `CONNECT` requests that use the -`':protocol'` HTTP/2 pseudo-header: +`':protocol'` HTTP/2 pseudo-header: ```js const http2 = require('http2'); |