GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — doc: clarify http2 docs around class exports · nodejs/node@9a31fdc

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • doc/api
    • http2.md
Expand file treeCollapse file tree
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
@@ -1510,6 +1515,10 @@ added: v8.4.0
15101515

15111516
* Extends: {net.Server}
15121517

1518+
Instances of `Http2Server` are created using the `http2.createServer()`
1519+
function. The `Http2Server` class is not exported directly by the `http2`
1520+
module.
1521+
15131522
#### Event: 'checkContinue'
15141523
<!-- YAML
15151524
added: v8.5.0
@@ -1617,6 +1626,10 @@ added: v8.4.0
16171626

16181627
* Extends: {tls.Server}
16191628

1629+
Instances of `Http2SecureServer` are created using the
1630+
`http2.createSecureServer()` function. The `Http2SecureServer` class is not
1631+
exported directly by the `http2` module.
1632+
16201633
#### Event: 'checkContinue'
16211634
<!-- YAML
16221635
added: v8.5.0

0 commit comments

Comments
0 (0)
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.