Skip to main content
IncomingMessage.prototype.setTimeout - http - Node documentation
method IncomingMessage.prototype.setTimeout

Usage in Deno

import { IncomingMessage } from "node:http";
IncomingMessage.prototype.setTimeout(
msecs: number,
callback?: () => void,
): this

Calls message.socket.setTimeout(msecs, callback).

Parameters

msecs: number
optional
callback: () => void

Return Type

this