From bb01597a7706c9378c280b628e64e68558969d8f Mon Sep 17 00:00:00 2001 From: Kenigbolo Meya Stephen Date: Sun, 2 Dec 2018 05:24:22 +0200 Subject: 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(+) (limited to 'doc') diff --git a/doc/api/http2.md b/doc/api/http2.md index c5a2382a47..4c241268b0 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)