From af4baa1d067115a32c9346fa2ac7462fe7672fb9 Mon Sep 17 00:00:00 2001 From: Tyler Murphy Date: Fri, 22 Nov 2019 19:52:04 -0500 Subject: [PATCH] Adds the HTTP server response method writeProcessing for node. (#40598) --- types/node/http.d.ts | 1 + types/node/test/http.ts | 3 +++ 2 files changed, 4 insertions(+) diff --git a/types/node/http.d.ts b/types/node/http.d.ts index 65ea677dee..139a9fb427 100644 --- a/types/node/http.d.ts +++ b/types/node/http.d.ts @@ -157,6 +157,7 @@ declare module "http" { writeContinue(callback?: () => void): void; writeHead(statusCode: number, reasonPhrase?: string, headers?: OutgoingHttpHeaders): this; writeHead(statusCode: number, headers?: OutgoingHttpHeaders): this; + writeProcessing(): void; } interface InformationEvent { diff --git a/types/node/test/http.ts b/types/node/test/http.ts index 5a39fb385b..fcb895e284 100644 --- a/types/node/test/http.ts +++ b/types/node/test/http.ts @@ -71,6 +71,9 @@ import * as net from 'net'; res.writeHead(200, { 'Transfer-Encoding': 'chunked' }); res.writeHead(200); + // writeProcessing + res.writeProcessing(); + // write string res.write('Part of my res.'); // write buffer