Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pages/getting-started/introduction-to-nodejs.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down