IncomingMessage.prototype.destroy - Node documentation
method IncomingMessage.prototype.destroy

Usage in Deno

import { IncomingMessage } from "node:http";
IncomingMessage.prototype.destroy(error?: Error): this

Calls destroy() on the socket that received the IncomingMessage. If erroris provided, an 'error' event is emitted on the socket and error is passed as an argument to any listeners on the event.

Parameters

optional
error: Error

Return Type

this