()
| 45 | // to treat the downloaded file as a blob/buffer anyway, we may as well retain |
| 46 | // it-- but that raises GC issues. Also we may want a persistent disk cache. |
| 47 | async iterator(): Promise<ByteChunkIterator> { |
| 48 | if (isLocalPath(this.url)) { |
| 49 | return (new FileDataSource(this.url as string, this.fileOptions)) |
| 50 | .iterator(); |
| 51 | } else { |
| 52 | return urlChunkIterator(this.url, this.fileOptions); |
| 53 | } |
| 54 | } |
| 55 | } |
nothing calls this directly
no test coverage detected