Skip to content
masterclass Buddy

Node.js · Class

ServerResponse

Node.js's HTTP module provides low-level client and server APIs. It parses message structure and supports streaming request and response bodies.

Last updated

Since
v0.1.90

Syntax

const http = require('node:http');
http.createServer([requestListener]);
http.request(options[, callback]);
http.get(options[, callback]);

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • http.Agent
  • http.ClientRequest
  • http.Server
  • http.ServerResponse
  • http.IncomingMessage
  • http.request
  • http.get
  • http.createServer

Source: HTTP | Node.js 26.13.0 Documentation. Checked 2026-11-03.