| 2683 | } |
| 2684 | |
| 2685 | class 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 | |
| 2702 | class XHRReader extends Reader { |
| 2703 |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…