summaryrefslogtreecommitdiff
path: root/doc/api/http2.md
diff options
context:
space:
mode:
authorYusuke Kawasaki <u-suke@kawa.net>2018-11-24 17:42:09 +0900
committerVse Mozhet Byt <vsemozhetbyt@gmail.com>2018-11-24 11:30:04 +0200
commit83a7247f12feb4f4d8ee558ad2c1528d26b503e0 (patch)
treeff5cd6274a3d2bebd40f2d8544bad90e975db5e3 /doc/api/http2.md
parente2140697aa095ac3dfc469c759e3f26edea6c08f (diff)
downloadandroid-node-v8-83a7247f12feb4f4d8ee558ad2c1528d26b503e0.tar.gz
android-node-v8-83a7247f12feb4f4d8ee558ad2c1528d26b503e0.tar.bz2
android-node-v8-83a7247f12feb4f4d8ee558ad2c1528d26b503e0.zip
doc: remove duplicate whitespaces in doc/api
PR-URL: https://github.com/nodejs/node/pull/24628 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
Diffstat (limited to 'doc/api/http2.md')
-rw-r--r--doc/api/http2.md10
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');