Skip to main content

Module fetcher

Module fetcher 

Source
Expand description

Optional remote download.

Compiled only with the remote feature (default). Reuses the exact same detect() / transcode() pipeline as the local path — only the source of raw_bytes changes. Downloaded content is treated as untrusted text: strict decoding rejects malformed byte sequences, no shell is executed, no recursive link following.

Functions§

derive_output_path
Derive the output path from the URL when --output is omitted:
fetch_bytes
Fetch url, capped by max_size, streaming the body to a temp file.