Add offset, length, async, http response parameters to download.
Created by: RNabel
- Creates a new
siad
endpoint at/renter/downloadchunk/<path>?destination=<dst>&chunkindex=<cind>
- Adds a new
siac
command:siac renter downloadchunk [path] [chunk index] [destination]
(analog to the order of args inrenter download
) - Refactors the
download.go
anddownloadqueue.go
to minimize duplicated logic. - Extends the
download
struct to store metadata for the special case of a chunk download. It could be changed to handle a whole file download as a special case of a chunk download, but this would add a lot of complexity.
This could be the basis for repairing files which are not stored locally.