pyrit.common.download_chunk

Contents

pyrit.common.download_chunk#

async download_chunk(url: str, headers: dict[str, str], start: int, end: int, client: AsyncClient) bytes[source]#

Download a chunk of the file with a specified byte range.

Returns:

The content of the downloaded chunk.