doc: add authority and scheme psuedo headers

This pull request adds the request psuedo headers authority
and scheme to the http2 documentation

PR-URL: https://github.com/nodejs/node/pull/24777
Fixes: https://github.com/nodejs/node/issues/23825
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
This commit is contained in:
Kenigbolo Meya Stephen authored and Rod Vagg committed 2019-02-28 23:37:39 +11:00
1 parent 4e2b21b489
commit d0a0bbd6fb
1 file changed
+20
+20
View File
@@ -2645,6 +2645,16 @@ added: v10.1.0
The `request.aborted` property will be `true` if the request has
been aborted.
#### request.authority
<!-- YAML
added: v8.4.0
-->
* {string}
The request authority pseudo header field. It can also be accessed via
`req.headers[':authority']`.
#### request.destroy([error])
<!-- YAML
added: v8.4.0
@@ -2753,6 +2763,16 @@ added: v8.4.0
The raw request/response trailer keys and values exactly as they were
received. Only populated at the `'end'` event.
#### request.scheme
<!-- YAML
added: v8.4.0
-->
* {string}
The request scheme pseudo header field indicating the scheme
portion of the target URL.
#### request.setTimeout(msecs, callback)
<!-- YAML
added: v8.4.0