1 2 3 4 5
use std::time::Duration; pub fn timeout_agent(timeout: Duration) -> ureq::Agent { ureq::AgentBuilder::new().timeout(timeout).build() }