From 8390f8a86ba93c2821d65f8fd99b9f0c9e6dc2a2 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 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 | 26 +++++++++++++++++-- 5 files changed, 59 insertions(+), 5 deletions(-) diff --git a/doc/api/http.md b/doc/api/http.md index 5b19255b57965b..248e4468e042ae 100644 --- a/doc/api/http.md +++ b/doc/api/http.md @@ -2336,6 +2336,9 @@ This can be overridden for servers and client requests by passing the