From 98f58218c1136c5fb3a9a9639c04e5e4d2488f93 Mon Sep 17 00:00:00 2001 From: Kenigbolo Meya Stephen Date: Sun, 2 Dec 2018 05:24:22 +0200 Subject: [PATCH] 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 Reviewed-By: Daniel Bevenius --- doc/api/http2.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/doc/api/http2.md b/doc/api/http2.md index c5a2382a479f6a..4c241268b047f9 100644 --- a/doc/api/http2.md +++ b/doc/api/http2.md @@ -2654,6 +2654,16 @@ added: v10.1.0 The `request.aborted` property will be `true` if the request has been aborted. +#### request.authority + + +* {string} + +The request authority pseudo header field. It can also be accessed via +`req.headers[':authority']`. + #### request.destroy([error]) + +* {string} + +The request scheme pseudo header field indicating the scheme +portion of the target URL. + #### request.setTimeout(msecs, callback)