Skip to content

Commit 6e56924

Browse files
Trottjuanarbol
authored andcommitted
doc: simplify Http2Stream encoding text
PR-URL: #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>
1 parent fb6a5ba commit 6e56924

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

doc/api/http2.md

+3-4
Original file line numberDiff line numberDiff line change
@@ -1013,10 +1013,9 @@ All `Http2Stream` instances are [`Duplex`][] streams. The `Writable` side of the
10131013
`Duplex` is used to send data to the connected peer, while the `Readable` side
10141014
is used to receive data sent by the connected peer.
10151015

1016-
The default text character encoding for all `Http2Stream`s is UTF-8. As a best
1017-
practice, it is recommended that when using an `Http2Stream` to send text,
1018-
the `'content-type'` header should be set and should identify the character
1019-
encoding used.
1016+
The default text character encoding for an `Http2Stream` is UTF-8. When using an
1017+
`Http2Stream` to send text, use the `'content-type'` header to set the character
1018+
encoding.
10201019

10211020
```js
10221021
stream.respond({

0 commit comments

Comments
 (0)