From e6135baed3f23a765cbedf5fd9d57c36fb8b7dac Mon Sep 17 00:00:00 2001 From: "Kyle E. Mitchell" Date: Fri, 10 Jun 2016 15:41:36 -0700 Subject: [PATCH] doc: mention http request "aborted" events Fixes: https://github.com/nodejs/node/issues/6925 PR-URL: https://github.com/nodejs/node/pull/7270 Reviewed-By: James M Snell Reviewed-By: Anna Henningsen --- doc/api/http.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/doc/api/http.md b/doc/api/http.md index 3e3d3fb0cc92fd..493e66b7e7589e 100644 --- a/doc/api/http.md +++ b/doc/api/http.md @@ -219,6 +219,13 @@ The request implements the [Writable Stream][] interface. This is an Emitted when the request has been aborted by the client. This event is only emitted on the first call to `abort()`. +### Event: 'aborted' + +`function () { }` + +Emitted when the request has been aborted by the server and the network +socket has closed. + ### Event: 'checkExpectation' `function (request, response) { }` @@ -903,6 +910,13 @@ headers and data. It implements the [Readable Stream][] interface, as well as the following additional events, methods, and properties. +### Event: 'aborted' + +`function () { }` + +Emitted when the request has been aborted by the client and the network +socket has closed. + ### Event: 'close' `function () { }`