Skip to content

Commit 2b03878

Browse files
kenigboloBethGriggs
authored andcommitted
doc: add authority and scheme psuedo headers
This pull request adds the request psuedo headers authority and scheme to the http2 documentation PR-URL: #24777 Fixes: #23825 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Daniel Bevenius <[email protected]>
1 parent 02e9a93 commit 2b03878

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

doc/api/http2.md

+20
Original file line numberDiff line numberDiff line change
@@ -2645,6 +2645,16 @@ added: v10.1.0
26452645
The `request.aborted` property will be `true` if the request has
26462646
been aborted.
26472647

2648+
#### request.authority
2649+
<!-- YAML
2650+
added: v8.4.0
2651+
-->
2652+
2653+
* {string}
2654+
2655+
The request authority pseudo header field. It can also be accessed via
2656+
`req.headers[':authority']`.
2657+
26482658
#### request.destroy([error])
26492659
<!-- YAML
26502660
added: v8.4.0
@@ -2753,6 +2763,16 @@ added: v8.4.0
27532763
The raw request/response trailer keys and values exactly as they were
27542764
received. Only populated at the `'end'` event.
27552765

2766+
#### request.scheme
2767+
<!-- YAML
2768+
added: v8.4.0
2769+
-->
2770+
2771+
* {string}
2772+
2773+
The request scheme pseudo header field indicating the scheme
2774+
portion of the target URL.
2775+
27562776
#### request.setTimeout(msecs, callback)
27572777
<!-- YAML
27582778
added: v8.4.0

0 commit comments

Comments
 (0)