MCPcopy
hub / github.com/gildas-lormeau/zip.js / FetchReader

Class FetchReader

index-native.cjs:2685–2700  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2683}
2684
2685class FetchReader extends Reader {
2686
2687 constructor(url, options) {
2688 super();
2689 createHttpReader(this, url, options);
2690 }
2691
2692 async init() {
2693 await initHttpReader(this, sendFetchRequest, getFetchRequestData);
2694 super.init();
2695 }
2696
2697 readUint8Array(index, length) {
2698 return readUint8ArrayHttpReader(this, index, length, sendFetchRequest, getFetchRequestData);
2699 }
2700}
2701
2702class XHRReader extends Reader {
2703

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…