diff --git a/doc/api/http.md b/doc/api/http.md index 0b5e75aeabe2cc..358fdbda9908e7 100644 --- a/doc/api/http.md +++ b/doc/api/http.md @@ -910,6 +910,14 @@ following additional events, methods, and properties. Indicates that the underlying connection was closed. Just like `'end'`, this event occurs only once per response. +### message.destroy([error]) + +* `error` {Error} + +Calls `destroy()` on the socket that received the `IncomingMessage`. If `error` +is provided, an `'error'` event is emitted and `error` is passed as an argument +to any listeners on the event. + ### message.headers The request/response headers object.