Node.js beginner 15 min

HTTP Request

Learn about HTTP Request in Node.js.

HTTP Request

An HTTP request is a message sent from a client to a server asking for a resource. It includes a method (GET, POST, etc.), a URL, headers, and sometimes a body.

Example

GET /users HTTP/1.1
Host: example.com

Practice

Open the browser Network tab and inspect a request. Identify the method, URL, and headers.