From ee1ceb67c254d1d808fe98c78e0d87b3c05e9763 Mon Sep 17 00:00:00 2001 From: Michael Lumish Date: Tue, 28 Jan 2020 16:54:31 -0800 Subject: [PATCH] doc: add protocol option in http2.connect() This option is used here: https://github.com/nodejs/node/blob/70c32a6d190e2b5d7b9ff9d5b6a459d14e8b7d59/lib/internal/http2/core.js#L3010 PR-URL: https://github.com/nodejs/node/pull/31560 Reviewed-By: Colin Ihrig Reviewed-By: Luigi Pinca Reviewed-By: Trivikram Kamat Reviewed-By: James M Snell Reviewed-By: Rich Trott --- doc/api/http2.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/doc/api/http2.md b/doc/api/http2.md index f02a8cb5fb3a6e..0f55ee03e42c6e 100644 --- a/doc/api/http2.md +++ b/doc/api/http2.md @@ -2257,6 +2257,9 @@ changes: * `selectPadding` {Function} When `options.paddingStrategy` is equal to `http2.constants.PADDING_STRATEGY_CALLBACK`, provides the callback function used to determine the padding. See [Using `options.selectPadding()`][]. + * `protocol` {string} The protocol to connect with, if not set in the + `authority`. Value may be either `'http:'` or `'https:'`. **Default:** + `'https:'` * `settings` {HTTP/2 Settings Object} The initial settings to send to the remote peer upon connection. * `createConnection` {Function} An optional callback that receives the `URL`