diff --git a/doc/api/http.md b/doc/api/http.md index 0a4fe959982480..9c3e0b3688ec52 100644 --- a/doc/api/http.md +++ b/doc/api/http.md @@ -513,11 +513,16 @@ See [`request.socket`][] ### request.end([data[, encoding]][, callback]) * `data` {string|Buffer} * `encoding` {string} * `callback` {Function} +* Returns: {this} Finishes sending the request. If any parts of the body are unsent, it will flush them to the stream. If the request is @@ -1010,11 +1015,16 @@ See [`response.socket`][]. ### response.end([data][, encoding][, callback]) * `data` {string|Buffer} * `encoding` {string} * `callback` {Function} +* Returns: {this} This method signals to the server that all of the response headers and body have been sent; that server should consider this message complete. diff --git a/doc/api/http2.md b/doc/api/http2.md index 8b428484c00d96..a6016725c4e0e8 100644 --- a/doc/api/http2.md +++ b/doc/api/http2.md @@ -2617,11 +2617,16 @@ See [`response.socket`][]. #### response.end([data][, encoding][, callback]) * `data` {string|Buffer} * `encoding` {string} * `callback` {Function} +* Returns: {this} This method signals to the server that all of the response headers and body have been sent; that server should consider this message complete. diff --git a/doc/api/stream.md b/doc/api/stream.md index 023ba4d77ba489..12dc1127118848 100644 --- a/doc/api/stream.md +++ b/doc/api/stream.md @@ -355,6 +355,9 @@ See also: [`writable.uncork()`][].