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

Class XHRReader

index-native.cjs:2702–2717  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2700}
2701
2702class XHRReader extends Reader {
2703
2704 constructor(url, options) {
2705 super();
2706 createHttpReader(this, url, options);
2707 }
2708
2709 async init() {
2710 await initHttpReader(this, sendXMLHttpRequest, getXMLHttpRequestData);
2711 super.init();
2712 }
2713
2714 readUint8Array(index, length) {
2715 return readUint8ArrayHttpReader(this, index, length, sendXMLHttpRequest, getXMLHttpRequestData);
2716 }
2717}
2718
2719function createHttpReader(httpReader, url, options) {
2720 const {

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…