mirror of
https://github.com/nodejs/node.git
synced 2026-11-21 12:59:16 -05:00
doc: update http2.md example code
`require('http');` should be `require('http2');`
PR-URL: https://github.com/nodejs/node/pull/14979
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
This commit is contained in:
1 parent
6179c2764a
commit
78b2bc77f2
1 file changed
+1
-1
+1
-1
@@ -893,7 +893,7 @@ invoked with two arguments: an Object containing the received
|
||||
For example:
|
||||
|
||||
```js
|
||||
const http2 = require('http');
|
||||
const http2 = require('http2');
|
||||
const client = http2.connect('https://localhost');
|
||||
const req = client.request({ ':path': '/' });
|
||||
req.on('response', (headers, flags) => {
|
||||
|
||||
Reference in new issue
Block a user