mirror of
https://github.com/eigent-ai/eigent.git
synced 2026-04-30 12:40:10 +00:00
15 lines
525 B
TypeScript
15 lines
525 B
TypeScript
import { IncomingMessage, ServerResponse } from 'http';
|
|
|
|
declare class ServerResponseWithBodyChunks extends ServerResponse {
|
|
bodyChunks: Uint8Array[];
|
|
_send(data: string, encoding: BufferEncoding, callback?: (() => void) | null, byteLength?: number): void;
|
|
}
|
|
declare function createNodeHttpServerDuplex(options: {
|
|
method: string;
|
|
originalUrl?: URL;
|
|
url: URL;
|
|
headers: Headers;
|
|
body: Uint8Array;
|
|
}): Promise<[IncomingMessage, ServerResponseWithBodyChunks]>;
|
|
|
|
export { createNodeHttpServerDuplex };
|