Browse Source

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 <jasnell@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
v4.x
Kyle E. Mitchell 9 years ago
committed by Myles Borins
parent
commit
ccb278d330
  1. 14
      doc/api/http.md

14
doc/api/http.md

@ -207,6 +207,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 when the request has been aborted by the client. This event is only
emitted on the first call to `abort()`. 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: 'connect' ### Event: 'connect'
`function (response, socket, head) { }` `function (response, socket, head) { }`
@ -853,6 +860,13 @@ headers and data.
It implements the [Readable Stream][] interface, as well as the It implements the [Readable Stream][] interface, as well as the
following additional events, methods, and properties. 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' ### Event: 'close'
`function () { }` `function () { }`

Loading…
Cancel
Save