MCPcopy Create free account
hub / github.com/bywwcnll/StreamPanel / attachFetchStreamObserver

Function attachFetchStreamObserver

inject.js:478–483  ·  view source on GitHub ↗
(stream, options)

Source from the content-addressed store, hash-verified

476 }
477
478 function attachFetchStreamObserver(stream, options) {
479 installReadableStreamObserverHooks();
480 const observer = createFetchStreamObserver(options);
481 registerFetchStreamObserver(stream, observer);
482 return observer;
483 }
484
485 function wrapFetchResponseClone(response, observer) {
486 if (!response || typeof response.clone !== 'function' || !observer) return;

Callers 1

inject.jsFile · 0.85

Tested by

no test coverage detected