(&mut self, proxy: String)
| 1568 | } |
| 1569 | |
| 1570 | fn set_proxy(&mut self, proxy: String) -> Result<(), Error> { |
| 1571 | if !proxy.is_empty() && !self.is_offline() { |
| 1572 | Proxy::all(&proxy)?; |
| 1573 | self.get_logger().debug(format!("Using proxy: {}", &proxy)); |
| 1574 | self.get_config_mut().proxy = proxy; |
| 1575 | self.reset_http_client(); |
| 1576 | } |
| 1577 | Ok(()) |
| 1578 | } |
| 1579 | |
| 1580 | fn get_timeout(&self) -> u64 { |
| 1581 | self.get_config().timeout |
no test coverage detected