HTTP & Networking
Node.js as a networking platform
Section titled “Node.js as a networking platform”One of Node.js’s defining strengths is its first-class networking support baked directly into the runtime. Before frameworks like Express or Fastify existed, developers wrote HTTP servers using nothing but the built-in node:http module — and that module is still the engine under every framework today.
This module teaches you to work with HTTP at the level that matters: the request/response cycle, routing, headers, status codes, and outbound fetching. By the end you will understand what every framework does under the hood.
What this module covers
Section titled “What this module covers”| Lesson | Topic |
|---|---|
| HTTP Server | http.createServer, status codes, headers, res.end |
| Routing | Manual routing on req.method and req.url |
| Outbound Requests | Global fetch, JSON, error handling |
| JSON API | Parse body, route, respond with JSON |
A minimal server — right now
Section titled “A minimal server — right now”No npm install, no framework, no config files. This is a complete Node.js HTTP server:
Needs the Node.js runtime — open in StackBlitz to run.
Three lines of logic — that is all it takes. The rest of this module unpacks each part.