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 3980ca1

Browse filesBrowse files
jasnellBethGriggs
authored andcommitted
doc: clarify http2 docs around class exports
Backport-PR-URL: #22850 PR-URL: #22247 Fixes: #21434 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: George Adams <george.adams@uk.ibm.com> Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
1 parent f2f66b4 commit 3980ca1
Copy full SHA for 3980ca1

File tree

Expand file treeCollapse file tree

1 file changed

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

1 file changed

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

‎doc/api/http2.md‎

Copy file name to clipboardExpand all lines: doc/api/http2.md
+13Lines changed: 13 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,11 @@ have occasion to work with the `Http2Session` object directly, with most
108108
actions typically taken through interactions with either the `Http2Server` or
109109
`Http2Stream` objects.
110110

111+
User code will not create `Http2Session` instances directly. Server-side
112+
`Http2Session` instances are created by the `Http2Server` instance when a
113+
new HTTP/2 connection is received. Client-side `Http2Session` instances are
114+
created using the `http2.connect()` method.
115+
111116
#### Http2Session and Sockets
112117

113118
Every `Http2Session` instance is associated with exactly one [`net.Socket`][] or
@@ -1505,6 +1510,10 @@ added: v8.4.0
15051510

15061511
* Extends: {net.Server}
15071512

1513+
Instances of `Http2Server` are created using the `http2.createServer()`
1514+
function. The `Http2Server` class is not exported directly by the `http2`
1515+
module.
1516+
15081517
#### Event: 'checkContinue'
15091518
<!-- YAML
15101519
added: v8.5.0
@@ -1612,6 +1621,10 @@ added: v8.4.0
16121621

16131622
* Extends: {tls.Server}
16141623

1624+
Instances of `Http2SecureServer` are created using the
1625+
`http2.createSecureServer()` function. The `Http2SecureServer` class is not
1626+
exported directly by the `http2` module.
1627+
16151628
#### Event: 'checkContinue'
16161629
<!-- YAML
16171630
added: v8.5.0

0 commit comments

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