We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb8d293 commit 7848528Copy full SHA for 7848528
doc/api/http.md
@@ -6,7 +6,8 @@
6
7
<!-- source_link=lib/http.js -->
8
9
-To use the HTTP server and client one must `require('node:http')`.
+This module, containing both a client and server, can be imported via
10
+`require('node:http')` (CommonJS) or `import * as http from 'node:http'` (ES module).
11
12
The HTTP interfaces in Node.js are designed to support many features
13
of the protocol which have been traditionally difficult to use.
0 commit comments