diff --git a/doc/api/http.md b/doc/api/http.md index 5e6ed88aa441d7..a41ec8838c8257 100644 --- a/doc/api/http.md +++ b/doc/api/http.md @@ -6,7 +6,8 @@ -To use the HTTP server and client one must `require('node:http')`. +This module, containing both a client and server, can be imported via +`require('node:http')` (CommonJS) or `import * as http from 'node:http'` (ES module). The HTTP interfaces in Node.js are designed to support many features of the protocol which have been traditionally difficult to use.