Skip to main content
ClientRequest.prototype.abort - http - Node documentation
method ClientRequest.prototype.abort

Usage in Deno

import { ClientRequest } from "node:http";
ClientRequest.prototype.abort(): void
Deprecated

Since v14.1.0,v13.14.0 - Use destroy instead.

Marks the request as aborting. Calling this will cause remaining data in the response to be dropped and the socket to be destroyed.

Return Type

void