/// Function to initialize Reqwest Client.
/// Also specifies the timeout.
Function to initialize Reqwest Client.
Also specifies the timeout.
Function to initialize Reqwest Client . Also specifies the timeout .
fn init_reqwest_client(timeout: u64) -> Result<reqwest::Client, String> {
    let client_builder = reqwest::ClientBuilder::new().timeout(Duration::new(timeout, 0));
    match client_builder.build() {
        Ok(x) => Ok(x),
        Err(_) => Err("Could not build http client".to_string()),
    }
}
fn init_reqwest_client ( timeout : u64 ) -> Result < reqwest :: Client , String > { let client_builder = reqwest :: ClientBuilder :: new ( ) . timeout ( Duration :: new ( timeout , 0 ) ) ; match client_builder . build ( ) { Ok ( x ) => Ok ( x ) , Err ( _ ) => Err ( " " . to_string ( ) ) , } }
Function to initialize Reqwest Client.
Function to initialize Reqwest Client .
timeout
u64