Skip to content

Commit 9bca451

Browse files
Trottcodebytere
authored andcommitted
doc: standardize on "host name" in http2.md
Our docs have a mix of "hostname" and "host name" in prose. Let's follow the usage of Unix man pages, RFCs, and most professionally-edited sources, and use "host name" in prose and "hostname" to refer to the command and in code. Lint rule forthcoming. PR-URL: #31326 Refs: #31073 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
1 parent a419698 commit 9bca451

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/api/http2.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2802,7 +2802,7 @@ console.log(request.headers);
28022802

28032803
See [HTTP/2 Headers Object][].
28042804

2805-
In HTTP/2, the request path, hostname, protocol, and method are represented as
2805+
In HTTP/2, the request path, host name, protocol, and method are represented as
28062806
special headers prefixed with the `:` character (e.g. `':path'`). These special
28072807
headers will be included in the `request.headers` object. Care must be taken not
28082808
to inadvertently modify these special headers or errors may occur. For instance,

0 commit comments

Comments
 (0)