Skip to main content
Server.prototype.requestTimeout - node__http.d.ts - Node documentation
property Server.prototype.requestTimeout

Usage in Deno

```typescript import { Server } from "node:node__http.d.ts"; ```
Sets the timeout value in milliseconds for receiving the entire request from the client. If the timeout expires, the server responds with status 408 without forwarding the request to the request listener and then closes the connection. It must be set to a non-zero value (e.g. 120 seconds) to protect against potential Denial-of-Service attacks in case the server is deployed without a reverse proxy in front.

Type

number