You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
516 B
13 lines
516 B
|
2 months ago
|
/// <reference types="node" />
|
||
|
|
/// <reference types="node" />
|
||
|
|
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): CloneableBody;
|