dot-probeRange: Probe a URL for size and HTTP Range support

.probeRangeR Documentation

Probe a URL for size and HTTP Range support

Description

Internal helper for the parallel ranged download path. Sends a HEAD request and reads Content-Length and Accept-Ranges. Any failure (HEAD not supported, timeout, httr2 unavailable) returns size = NA / acceptRanges = FALSE, which the caller treats as "use single-stream".

Usage

.probeRange(url, verbose = getOption("reproducible.verbose", 1))

Arguments

url

The URL to probe.

verbose

Numeric verbosity level.

Value

A list with size (numeric, bytes or NA) and acceptRanges (logical).


reproducible documentation built on Aug. 26, 2026, 1:07 a.m.