From 9de56b9a0d72974c287fa69c754a8ddd3236c802 Mon Sep 17 00:00:00 2001 From: Kenigbolo Meya Stephen Date: Sun, 2 Dec 2018 05:24:22 +0200 Subject: [PATCH 1/3] doc: add authority and scheme psuedo headers This pull request adds the request psuedo headers authority and scheme to the http2 documentation Fixes: https://github.com/nodejs/node/issues/23825 --- doc/api/http2.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/doc/api/http2.md b/doc/api/http2.md index c5a2382a479f6a..515aa4bf187b14 100644 --- a/doc/api/http2.md +++ b/doc/api/http2.md @@ -2723,6 +2723,26 @@ added: v8.4.0 The request method as a string. Read-only. Examples: `'GET'`, `'DELETE'`. +#### request.authority + + +* {string} + +The request authority psuedo header field. It can also be accessed via +`req.headers[':authority']` + +#### request.scheme + + +* {string} + +The request schem psuedo header field indicating the scheme +portion of the target URI. + #### request.rawHeaders + +* {string} + +The request authority pseudo header field. It can also be accessed via +`req.headers[':authority']`. + #### request.destroy([error]) - -* {string} - -The request authority psuedo header field. It can also be accessed via -`req.headers[':authority']` - -#### request.scheme - - -* {string} - -The request scheme psuedo header field indicating the scheme -portion of the target URL. - #### request.rawHeaders + +* {string} + +The request scheme pseudo header field indicating the scheme +portion of the target URL. + #### request.setTimeout(msecs, callback)