From 524b7134e81db83552d58c5f4aad5a388081de8c Mon Sep 17 00:00:00 2001 From: Benjamin Gruenbaum Date: Mon, 9 Nov 2020 12:51:14 +0200 Subject: [PATCH] http: add support for abortsignal to http.request PR-URL: https://github.com/nodejs/node/pull/36048 Backport-PR-URL: https://github.com/nodejs/node/pull/38386 Reviewed-By: Anna Henningsen Reviewed-By: Denys Otrishko Reviewed-By: Ricky Zhou <0x19951125@gmail.com> Reviewed-By: Rich Trott --- doc/api/http.md | 9 +++++++ lib/.eslintrc.yaml | 2 +- lib/_http_client.js | 16 +++++++++-- lib/internal/errors.js | 11 ++++++++ .../test-http-client-abort-destroy.js | 27 +++++++++++++++++-- 5 files changed, 60 insertions(+), 5 deletions(-) diff --git a/doc/api/http.md b/doc/api/http.md index a48ec63381c0c3..a17c7246c52c3e 100644 --- a/doc/api/http.md +++ b/doc/api/http.md @@ -2326,6 +2326,9 @@ This can be overridden for servers and client requests by passing the