-
Notifications
You must be signed in to change notification settings - Fork 30.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
doc: http2.connect accepts net & tls options #16576
Conversation
@@ -1627,6 +1627,7 @@ added: v8.4.0 | |||
* `createConnection` {Function} An optional callback that receives the `URL` | |||
instance passed to `connect` and the `options` object, and returns any | |||
[`Duplex`][] stream that is to be used as the connection for this session. | |||
* ...: Any [`net.connect()`][] or [`tls.connect()`][] options can be provided. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add backticks to the ...
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The current version matches doc/api/tls.md
where it's used like this 3 times. (Also one other place in the http2 doc.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
I assume this doesn't need 48 hours but please speak up if you disagree. Will be merging within the next hour. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 for not waiting the 48 hours
Landed in 8a9be41 |
PR-URL: nodejs/node#16576 Fixes: nodejs/node#15405 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
PR-URL: nodejs/node#16576 Fixes: nodejs/node#15405 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
PR-URL: nodejs/node#16576 Fixes: nodejs/node#15405 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Makes it clear that
http2.connect
can accept all the same options asnet.connect
andtls.connect
since there seems to be some confusion around this.Fixes: #15405
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passesAffected core subsystem(s)
doc