download_obfuscated_file

Function download_obfuscated_file 

Source
pub fn download_obfuscated_file(
    download_url: &str,
    client: &Client,
) -> Result<Vec<u8>, Box<dyn Error>>
Expand description

Downloads the obfuscated file from the presigned URL.

§Arguments

  • download_url - The presigned URL returned by download when ready.
  • client - A preconfigured reqwest::blocking::Client.

§Returns

A Result<Vec<u8>, Box<dyn Error>> containing the obfuscated file bytes.

§Errors

Returns an error if the download fails or the server responds with a non-success status.