Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 1b08ae8

Browse filesBrowse files
apapirovskigibfahn
authored andcommitted
doc: http2.connect accepts net & tls options
PR-URL: #16576 Fixes: #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>
1 parent 0510f42 commit 1b08ae8
Copy full SHA for 1b08ae8

File tree

Expand file treeCollapse file tree

1 file changed

+3
-0
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-0
lines changed
Open diff view settings
Collapse file

‎doc/api/http2.md‎

Copy file name to clipboardExpand all lines: doc/api/http2.md
+3Lines changed: 3 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -1627,6 +1627,7 @@ added: v8.4.0
16271627
* `createConnection` {Function} An optional callback that receives the `URL`
16281628
instance passed to `connect` and the `options` object, and returns any
16291629
[`Duplex`][] stream that is to be used as the connection for this session.
1630+
* ...: Any [`net.connect()`][] or [`tls.connect()`][] options can be provided.
16301631
* `listener` {Function}
16311632
* Returns {Http2Session}
16321633

@@ -2746,6 +2747,7 @@ if the stream is closed.
27462747
[`http2.createServer()`]: #http2_http2_createserver_options_onrequesthandler
27472748
[`http2stream.pushStream()`]: #http2_http2stream_pushstream_headers_options_callback
27482749
[`net.Socket`]: net.html#net_class_net_socket
2750+
[`net.connect()`]: net.html#net_net_connect
27492751
[`request.socket.getPeerCertificate()`]: tls.html#tls_tlssocket_getpeercertificate_detailed
27502752
[`response.end()`]: #http2_response_end_data_encoding_callback
27512753
[`response.setHeader()`]: #http2_response_setheader_name_value
@@ -2755,5 +2757,6 @@ if the stream is closed.
27552757
[`response.writeContinue()`]: #http2_response_writecontinue
27562758
[`response.writeHead()`]: #http2_response_writehead_statuscode_statusmessage_headers
27572759
[`tls.TLSSocket`]: tls.html#tls_class_tls_tlssocket
2760+
[`tls.connect()`]: tls.html#tls_tls_connect_options_callback
27582761
[`tls.createServer()`]: tls.html#tls_tls_createserver_options_secureconnectionlistener
27592762
[error code]: #error_codes

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.