Skip to main content

download_bytes

Function download_bytes 

Source
async fn download_bytes(
    client: &PasswordManagerClient,
    url: &str,
) -> Result<Vec<u8>>
Expand description

GET a pre-signed blob URL with the client’s shared HTTP stack (so proxy and TLS settings apply), mirroring legacy’s apiService.nativeFetch.

The fetch lives here rather than in super::file_output because a shared helper would have to name reqwest::Client in its signature, which would mean adding reqwest as a direct dependency of bw. Worth doing once a second command needs it; not for one caller.