From d0a0bbd6fb60e7e465015dbfc78d655833c33a86 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 0da4c63d676864..5606f78e051e81 100644 --- a/doc/api/http2.md +++ b/doc/api/http2.md @@ -2645,6 +2645,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)