Skip to content

Conversation

@Ziv2004
Copy link

@Ziv2004 Ziv2004 commented Apr 12, 2025

hey, just added an option to use partial downloads.

the change should not affect the way downloads are currentlly implemented

how it works?

it usses http partial content function using the Range header.
if you download without the range header, it will just download normally, If you add it, it will only download what is specified.
The header is used in the format of {Range : bytes=start-end}
you can either use {bytes=start-end} to download a specific part of the file or {bytes=start-} to download from the start point until the end of the file.
if you use the second method it will automaticlly recognise the download is completed and will mark it as so.

also added minor logging improvment and an api documentation.

the implemntation is on the application side, there is a way to make it server side I just cant bother cuz my head is burned lol

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant