Skip to main content

Module http

Module http 

Source

Structs§

HttpClient

Enums§

HttpError

Constants§

DEFAULT_RANGE_GAP_THRESHOLD
Default gap threshold for range merging (256 KiB, same as zsync2).

Functions§

byte_ranges_from_block_ranges
merge_byte_ranges
Merge byte ranges to minimize HTTP requests. Gaps smaller than the threshold are merged to save HTTP round-trips.