Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc: add authority and scheme psuedo headers #24777

Closed
wants to merge 3 commits into from
Closed
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions doc/api/http2.md
Original file line number Diff line number Diff line change
Expand Up @@ -2723,6 +2723,26 @@ added: v8.4.0

The request method as a string. Read-only. Examples: `'GET'`, `'DELETE'`.

#### request.authority
kenigbolo marked this conversation as resolved.
Show resolved Hide resolved
<!-- YAML
added: v8.4.0
-->

* {string}

The request authority psuedo header field. It can also be accessed via
kenigbolo marked this conversation as resolved.
Show resolved Hide resolved
`req.headers[':authority']`
kenigbolo marked this conversation as resolved.
Show resolved Hide resolved

#### request.scheme
<!-- YAML
added: v8.4.0
-->

* {string}

The request scheme psuedo header field indicating the scheme
kenigbolo marked this conversation as resolved.
Show resolved Hide resolved
portion of the target URL.

#### request.rawHeaders
<!-- YAML
added: v8.4.0
Expand Down