From a5247cc1808ec1cd79c85b0c4f48dd3cc3e08e10 Mon Sep 17 00:00:00 2001 From: "Mark S. Everitt" Date: Wed, 6 Feb 2019 22:17:23 +0000 Subject: [PATCH] http: makes response.writeHead return the response Fixes: https://github.com/nodejs/node/issues/25935 PR-URL: https://github.com/nodejs/node/pull/25974 Reviewed-By: Anna Henningsen Reviewed-By: Luigi Pinca --- doc/api/http.md | 16 +++++++++++--- lib/_http_server.js | 2 ++ ...st-http-response-writehead-returns-this.js | 22 +++++++++++++++++++ 3 files changed, 37 insertions(+), 3 deletions(-) create mode 100644 test/parallel/test-http-response-writehead-returns-this.js diff --git a/doc/api/http.md b/doc/api/http.md index fc80ca8513355b..0f1d98b6d2aa5c 100644 --- a/doc/api/http.md +++ b/doc/api/http.md @@ -1444,6 +1444,10 @@ the request body should be sent. See the [`'checkContinue'`][] event on