Skip to content

Commit 0a1e7df

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 <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Rich Trott <[email protected]>
1 parent b6822ab commit 0a1e7df

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

doc/api/http2.md

+3
Original file line numberDiff line numberDiff line change
@@ -2257,6 +2257,9 @@ changes:
22572257
* `selectPadding` {Function} When `options.paddingStrategy` is equal to
22582258
`http2.constants.PADDING_STRATEGY_CALLBACK`, provides the callback function
22592259
used to determine the padding. See [Using `options.selectPadding()`][].
2260+
* `protocol` {string} The protocol to connect with, if not set in the
2261+
`authority`. Value may be either `'http:'` or `'https:'`. **Default:**
2262+
`'https:'`
22602263
* `settings` {HTTP/2 Settings Object} The initial settings to send to the
22612264
remote peer upon connection.
22622265
* `createConnection` {Function} An optional callback that receives the `URL`

0 commit comments

Comments
 (0)