Skip to content

Commit

Permalink
doc: add authority and scheme psuedo headers
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
kenigbolo authored and BethGriggs committed Feb 20, 2019
1 parent 8624a89 commit ff26cfb
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions doc/api/http2.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit ff26cfb

Please sign in to comment.