mirror of
https://github.com/nodejs/node.git
synced 2026-11-24 21:50:36 -05:00
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 <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>
This commit is contained in:
1 parent
5a12cd636b
commit
7fe9d5ebd4
1 file changed
+3
@@ -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`
|
||||
|
||||
Reference in new issue
Block a user