Download frontend/node_modules/next/dist/server/lib/clone-response.d.ts from netzkontrast/rag-context-optimizer: direct link, hf CLI and curl.
- Browser
- Download file 531 Bytes
-
https://huggingface.co/spaces/netzkontrast/rag-context-optimizer/resolve/main/frontend/node_modules/next/dist/server/lib/clone-response.d.ts
- Command line
-
hf download hf://spaces/netzkontrast/rag-context-optimizer/frontend/node_modules/next/dist/server/lib/clone-response.d.ts
-
curl -L -o clone-response.d.ts https://huggingface.co/spaces/netzkontrast/rag-context-optimizer/resolve/main/frontend/node_modules/next/dist/server/lib/clone-response.d.ts
531 Bytes
| /** | |
| * Clones a response by teeing the body so we can return two independent | |
| * ReadableStreams from it. This avoids the bug in the undici library around | |
| * response cloning. | |
| * | |
| * After cloning, the original response's body will be consumed and closed. | |
| * | |
| * @see https://github.com/vercel/next.js/pull/73274 | |
| * | |
| * @param original - The original response to clone. | |
| * @returns A tuple containing two independent clones of the original response. | |
| */ | |
| export declare function cloneResponse(original: Response): [Response, Response]; | |