Skip to content

Commit 71e520c

Browse files
kenigboloBridgeAR
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 <anna@addaleax.net> Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
1 parent 88a5449 commit 71e520c

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
@@ -2654,6 +2654,16 @@ added: v10.1.0
26542654
The `request.aborted` property will be `true` if the request has
26552655
been aborted.
26562656

2657+
#### request.authority
2658+
<!-- YAML
2659+
added: v8.4.0
2660+
-->
2661+
2662+
* {string}
2663+
2664+
The request authority pseudo header field. It can also be accessed via
2665+
`req.headers[':authority']`.
2666+
26572667
#### request.destroy([error])
26582668
<!-- YAML
26592669
added: v8.4.0
@@ -2762,6 +2772,16 @@ added: v8.4.0
27622772
The raw request/response trailer keys and values exactly as they were
27632773
received. Only populated at the `'end'` event.
27642774

2775+
#### request.scheme
2776+
<!-- YAML
2777+
added: v8.4.0
2778+
-->
2779+
2780+
* {string}
2781+
2782+
The request scheme pseudo header field indicating the scheme
2783+
portion of the target URL.
2784+
27652785
#### request.setTimeout(msecs, callback)
27662786
<!-- YAML
27672787
added: v8.4.0

0 commit comments

Comments
 (0)