diff --git a/doc/api/http.md b/doc/api/http.md index 8891e99872a687..ebe7a1f33b4e00 100644 --- a/doc/api/http.md +++ b/doc/api/http.md @@ -730,6 +730,7 @@ A client server pair demonstrating how to listen for the `'upgrade'` event. ```mjs import http from 'node:http'; +import process from 'node:process'; // Create an HTTP server const server = http.createServer((req, res) => { @@ -3785,6 +3786,7 @@ upload a file with a POST request, then write to the `ClientRequest` object. ```mjs import http from 'node:http'; +import { Buffer } from 'node:buffer'; const postData = JSON.stringify({ 'msg': 'Hello World!',