.
This commit is contained in:
+10
@@ -0,0 +1,10 @@
|
||||
import type { IncomingMessage } from 'http';
|
||||
import type { Readable } from 'stream';
|
||||
export declare function requestToBodyStream(context: {
|
||||
ReadableStream: typeof ReadableStream;
|
||||
}, KUint8Array: typeof Uint8Array, stream: Readable): ReadableStream<any>;
|
||||
export interface CloneableBody {
|
||||
finalize(): Promise<void>;
|
||||
cloneBodyStream(): Readable;
|
||||
}
|
||||
export declare function getCloneableBody<T extends IncomingMessage>(readable: T, sizeLimit?: number): CloneableBody;
|
||||
Reference in New Issue
Block a user