Support url to download zip from HTTP(s) server using Range header #91
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Zip format doesn't allow real unzipping from a stream as it starts from the end and you can't really know the end of a stream.
Nevertheless, it doesn't mean you absolutely need the entire zip on your disk.
As long as you know the size of the zip file, and you are able to read part of it based on offset, it can be unzipped without touching the disk.
This PR aim to provide this feature from HTTP(S) server supporting
Range
header:https://developer.mozilla.org/en-US/docs/Web/HTTP/Range_requests
The server should also respond the size of the file via HEAD request in
Content-length
response header (which is pretty standard).