Expand description
One worker transferring one range at a time.
Memory discipline (PRD §30): a worker holds one body chunk at a time and
writes it straight through to the file. Nothing accumulates, so peak memory
is connections × chunk, independent of file size — a 500 GB download costs
the same as a 5 GB one.
Structs§
- Primed
Body - A live response body from
crate::http::probe_priming, tagged with the URL it came from so it can never be spliced into a different source’s range. - Worker
Ctx - Everything a worker needs, shared by
Arcacross all of them.
Enums§
- Worker
Outcome - Outcome of a worker’s whole run.
Functions§
- run
- Pull ranges until there are none left, the download is cancelled, or a non-recoverable error occurs.