Skip to content

Commit 7fe9d5e

Browse files
murgatroid99codebytere
authored andcommitted
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: #31560 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
1 parent 5a12cd6 commit 7fe9d5e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

doc/api/http2.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2250,6 +2250,9 @@ changes:
22502250
streams for the remote peer as if a `SETTINGS` frame had been received. Will
22512251
be overridden if the remote peer sets its own value for
22522252
`maxConcurrentStreams`. **Default:** `100`.
2253+
* `protocol` {string} The protocol to connect with, if not set in the
2254+
`authority`. Value may be either `'http:'` or `'https:'`. **Default:**
2255+
`'https:'`
22532256
* `settings` {HTTP/2 Settings Object} The initial settings to send to the
22542257
remote peer upon connection.
22552258
* `createConnection` {Function} An optional callback that receives the `URL`

0 commit comments

Comments
 (0)