HTTP
server.requestTimeout
Configures the time allowed to receive a complete incoming HTTP request. This is not the time limit for processing a route or sending its response. Choose explicit limits for a deployment and independently enforce application deadlines. This fixture verifies the configured value, not a live timeout. Tested on Node.js 22.16.0. Example output (one line per entry): ["3000"].
Formal Syntax & Structure
nodejs syntaxnodejs
server.requestTimeout = millisecondsReturn Value
number
Request-receipt timeout in milliseconds.
Working Example
Example Snippetnodejs
import http from 'node:http';const server = http.createServer({ requestTimeout: 3000 }, (req, res) => res.end('ok'));console.log(server.requestTimeout);