Adds the HTTP server response method writeProcessing for node. (#40598)

This commit is contained in:
Tyler Murphy
2019-11-22 16:52:04 -08:00
committed by Sheetal Nandi
parent e2f62377ba
commit af4baa1d06
2 changed files with 4 additions and 0 deletions
+1
View File
@@ -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 {
+3
View File
@@ -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