From 7fe9d5ebd40e45bbcfaa0ff97ae2a19e7a320344 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 888dab6ea885f4..e022b39f044d53 100644 --- a/doc/api/http2.md +++ b/doc/api/http2.md @@ -2250,6 +2250,9 @@ changes: streams for the remote peer as if a `SETTINGS` frame had been received. Will be overridden if the remote peer sets its own value for `maxConcurrentStreams`. **Default:** `100`. + * `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`