methodhttp.IncomingMessage.destroydestroy(error?: Error): this;Calls destroy() on the socket that received the IncomingMessage. If error is provided, an 'error' event is emitted on the socket and error is passed as an argument to any listeners on the event.Referenced typesinterface Errorcause?: unknownThe cause of the error.message: stringname: stringstack?: string
Calls destroy() on the socket that received the IncomingMessage. If error is provided, an 'error' event is emitted on the socket and error is passed as an argument to any listeners on the event.