diff options
author | Rich Trott <rtrott@gmail.com> | 2020-01-12 18:26:55 +0300 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2020-01-14 21:17:24 +0300 |
commit | ac887f849ae0597ccda49149b33715397ae99993 (patch) | |
tree | a988d93f6631ace6ff3fe00e5a8549087cb2eb75 /doc/api/http2.md | |
parent | 83909e04c0b9e985a84a15301f9021d00226d859 (diff) |
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: https://github.com/nodejs/node/pull/31326
Refs: https://github.com/nodejs/node/pull/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>
Diffstat (limited to 'doc/api/http2.md')
-rw-r--r-- | doc/api/http2.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/api/http2.md b/doc/api/http2.md index 42b0693bda2..888dab6ea88 100644 --- a/doc/api/http2.md +++ b/doc/api/http2.md @@ -2783,7 +2783,7 @@ console.log(request.headers); See [HTTP/2 Headers Object][]. -In HTTP/2, the request path, hostname, protocol, and method are represented as +In HTTP/2, the request path, host name, protocol, and method are represented as special headers prefixed with the `:` character (e.g. `':path'`). These special headers will be included in the `request.headers` object. Care must be taken not to inadvertently modify these special headers or errors may occur. For instance, |