From e2188ce577825805f58e70194834af3fc20ef6c8 Mon Sep 17 00:00:00 2001 From: "Kyle E. Mitchell" Date: Fri, 10 Jun 2016 15:41:36 -0700 Subject: [PATCH 1/2] doc: mention http.ClientRequest's "aborted" event --- doc/api/http.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/doc/api/http.md b/doc/api/http.md index 0b5e75aeabe2cc..5548980e59b2b6 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) { }` From efd8322638b2fc8ba9f345bb00979b102f53f2f9 Mon Sep 17 00:00:00 2001 From: "Kyle E. Mitchell" Date: Fri, 10 Jun 2016 15:42:37 -0700 Subject: [PATCH 2/2] doc: mention http.IncomingRequest's "aborted" event --- doc/api/http.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/doc/api/http.md b/doc/api/http.md index 5548980e59b2b6..6dd9e406545e68 100644 --- a/doc/api/http.md +++ b/doc/api/http.md @@ -910,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 () { }`