diff options
author | Rich Trott <rtrott@gmail.com> | 2022-04-05 20:03:10 -0700 |
---|---|---|
committer | Juan José Arboleda <soyjuanarbol@gmail.com> | 2022-04-06 12:25:56 -0500 |
commit | 6e5692427495536566a252e671003e587eb1988a (patch) | |
tree | baf31913e8d1166cd4f7ad3d8349491ed70f4bc2 | |
parent | fb6a5ba8d70d5ded6c873eef8501246852f6651d (diff) | |
download | node-new-6e5692427495536566a252e671003e587eb1988a.tar.gz |
doc: simplify Http2Stream encoding text
PR-URL: https://github.com/nodejs/node/pull/42597
Reviewed-By: Paolo Insogna <paolo@cowtech.it>
Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com>
Reviewed-By: Akhil Marsonya <akhil.marsonya27@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Harshitha K P <harshitha014@gmail.com>
Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com>
-rw-r--r-- | doc/api/http2.md | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/doc/api/http2.md b/doc/api/http2.md index 0ed65d8afb..5ebd5c1618 100644 --- a/doc/api/http2.md +++ b/doc/api/http2.md @@ -1013,10 +1013,9 @@ All `Http2Stream` instances are [`Duplex`][] streams. The `Writable` side of the `Duplex` is used to send data to the connected peer, while the `Readable` side is used to receive data sent by the connected peer. -The default text character encoding for all `Http2Stream`s is UTF-8. As a best -practice, it is recommended that when using an `Http2Stream` to send text, -the `'content-type'` header should be set and should identify the character -encoding used. +The default text character encoding for an `Http2Stream` is UTF-8. When using an +`Http2Stream` to send text, use the `'content-type'` header to set the character +encoding. ```js stream.respond({ |