mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 04:50:18 +00:00
Adds the HTTP server response method writeProcessing for node. (#40598)
This commit is contained in:
committed by
Sheetal Nandi
parent
e2f62377ba
commit
af4baa1d06
Vendored
+1
@@ -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 {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user