ufiber
Version:
Next-gen webserver for node-js developer
23 lines (22 loc) • 677 B
TypeScript
import { BufferArray } from "../types.js";
import { Readable } from "stream";
import { HttpResponse } from "../../uws";
//#region src/http/readable.d.ts
declare const kUwsRead: unique symbol;
type UwsRead = {
buffer: BufferArray | null;
chunks: BufferArray[];
bytes: number;
isDone: boolean;
};
declare class UwsReadable extends Readable {
#private;
[kUwsRead]: UwsRead;
constructor(res: HttpResponse, limit?: number);
_read(): void;
_destroy(err: Error | null, cb: (error?: Error | null) => void): void;
once(event: string | symbol, listener: (...args: any[]) => void): this;
getBuffer: () => Promise<BufferArray>;
}
//#endregion
export { UwsReadable };