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.
SubscribeRelated
http.Agenthttp.ClientRequesthttp.Serverhttp.ServerResponsehttp.IncomingMessagehttp.requesthttp.gethttp.createServer