pub fn get_bytes(
url: &str,
headers: &[(&str, &str)],
) -> Result<HttpBytes, HttpError>Expand description
GET url and read the whole body as bytes.
Still one blocking request with no retry and no resume, and still not a
downloader: it exists for the rare resolver that must read a file to
resolve it. Installing files is opys-runtime’s job.