Docs
/
Node Express
Chapter 4

04 — HTTP Module (No Framework)

Core Concepts

  • http.createServer — create a basic HTTP server
  • IncomingMessage (req) — the request object (method, url, headers, body stream)
  • ServerResponse (res) — the response object (statusCode, setHeader, write, end)
  • Routing — manual URL + method matching
  • Body parsing — collecting request body from stream
  • Static files — serving files from disk
  • HTTPShttps.createServer with TLS certificates

This topic shows how HTTP works under the hood — the foundation Express builds on.