Skip to content

Commit 3801ccd

Browse files
authored
fix(docs): update http api in introduction page (#69)
1 parent d886d71 commit 3801ccd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pages/getting-started/introduction-to-nodejs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ The `createServer()` method of `http` creates a new HTTP server and returns it.
6767

6868
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.
6969

70-
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).
70+
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).
7171

7272
Those 2 objects are essential to handle the HTTP call.
7373

0 commit comments

Comments
 (0)