From 6e001474eaed2f1f4d2466c5ce4e0f009107145c Mon Sep 17 00:00:00 2001 From: MacMacky Date: Sat, 2 May 2026 13:35:08 +0800 Subject: [PATCH] fix(docs): update http api in introduction page --- pages/getting-started/introduction-to-nodejs.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/getting-started/introduction-to-nodejs.md b/pages/getting-started/introduction-to-nodejs.md index 2c591ed..6bc4fd2 100644 --- a/pages/getting-started/introduction-to-nodejs.md +++ b/pages/getting-started/introduction-to-nodejs.md @@ -67,7 +67,7 @@ The `createServer()` method of `http` creates a new HTTP server and returns it. The server is set to listen on the specified port and host name. When the server is ready, the callback function is called, in this case informing us that the server is running. -Whenever a new request is received, the [`request` event](https://nodejs.org/api/http.html#http_event_request) is called, providing two objects: a request (an [`http.IncomingMessage`](https://nodejs.org/api/http.html#http_class_http_incomingmessage) object) and a response (an [`http.ServerResponse`](https://nodejs.org/api/http.html#http_class_http_serverresponse) object). +Whenever a new request is received, the [`request` event](https://nodejs.org/api/http.html#event-request) is called, providing two objects: a request (an [`http.IncomingMessage`](https://nodejs.org/api/http.html#class-httpincomingmessage) object) and a response (an [`http.ServerResponse`](https://nodejs.org/api/http.html#class-httpserverresponse) object). Those 2 objects are essential to handle the HTTP call.