Download frontend/node_modules/next/dist/experimental/testmode/httpget.js from netzkontrast/rag-context-optimizer: direct link, hf CLI and curl.
- Browser
- Download file 824 Bytes
-
https://huggingface.co/spaces/netzkontrast/rag-context-optimizer/resolve/main/frontend/node_modules/next/dist/experimental/testmode/httpget.js
- Command line
-
hf download hf://spaces/netzkontrast/rag-context-optimizer/frontend/node_modules/next/dist/experimental/testmode/httpget.js
-
curl -L -o httpget.js https://huggingface.co/spaces/netzkontrast/rag-context-optimizer/resolve/main/frontend/node_modules/next/dist/experimental/testmode/httpget.js
824 Bytes
| ; | |
| Object.defineProperty(exports, "__esModule", { | |
| value: true | |
| }); | |
| Object.defineProperty(exports, "interceptHttpGet", { | |
| enumerable: true, | |
| get: function() { | |
| return interceptHttpGet; | |
| } | |
| }); | |
| const _ClientRequest = require("next/dist/compiled/@mswjs/interceptors/ClientRequest"); | |
| const _fetch = require("./fetch"); | |
| function interceptHttpGet(originalFetch) { | |
| const clientRequestInterceptor = new _ClientRequest.ClientRequestInterceptor(); | |
| clientRequestInterceptor.on('request', async ({ request })=>{ | |
| const response = await (0, _fetch.handleFetch)(originalFetch, request); | |
| request.respondWith(response); | |
| }); | |
| clientRequestInterceptor.apply(); | |
| // Cleanup. | |
| return ()=>{ | |
| clientRequestInterceptor.dispose(); | |
| }; | |
| } | |
| //# sourceMappingURL=httpget.js.map |