URL of the file.
Absolute path the file is written to.
OptionalonProgress: (percent: number) => void
Called with the progress in whole percent whenever it changes, if the size is known.
A promise resolving to the size and SHA-256 of the written file.
Downloads a file over HTTPS, following redirects, and hashes it on the way.