request.abort()


稳定性: 0 - 弃用: 改为使用 request.destroy()

将请求标记为中止。 调用此方法将导致响应中剩余的数据被丢弃并且套接字被销毁。

Stability: 0 - Deprecated: Use request.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.