| 353 | // capnweb (which would split capnweb's module identity in mixed |
| 354 | // ESM/CJS contexts — the RpcTarget instanceof check then fails). |
| 355 | export function serveHTTPBatch( |
| 356 | request: import("node:http").IncomingMessage, |
| 357 | response: import("node:http").ServerResponse, |
| 358 | rpc: SyncRPC | ShellRPC | WorkspaceRPC, |
| 359 | ): Promise<void> { |
| 360 | return nodeHttpBatchRpcResponse(request, response, rpc as unknown as RpcTarget); |
| 361 | } |
| 362 | |
| 363 | function iterableToReadableStream<T>(it: AsyncIterable<T>): ReadableStream<T> { |
| 364 | const iterator = it[Symbol.asyncIterator](); |