AirLibrary/Client/AirServiceProvider/
DownloadStream.rs1use std::collections::HashMap;
7
8use crate::{
9 AirError,
10 Client::{AirClient::DownloadStream as DownloadStreamDTO, AirServiceProvider::AirServiceProvider},
11 dev_log,
12};
13
14impl AirServiceProvider {
15 pub async fn DownloadStream(
19 &self,
20
21 url:String,
22
23 headers:HashMap<String, String>,
24 ) -> Result<DownloadStreamDTO::Struct, AirError> {
25 let RequestID = crate::Utility::GenerateRequestId();
26
27 dev_log!(
28 "grpc",
29 "[AirServiceProvider] DownloadStream (request_id: {}, url: {})",
30 RequestID,
31 url
32 );
33
34 self.client.DownloadStream(RequestID, url, headers).await
35 }
36}