(&mut self, proxy: String)
| 1539 | } |
| 1540 | |
| 1541 | fn set_proxy(&mut self, proxy: String) -> Result<(), Error> { |
| 1542 | if !proxy.is_empty() && !self.is_offline() { |
| 1543 | self.get_logger().debug(format!("Using proxy: {}", &proxy)); |
| 1544 | self.get_config_mut().proxy = proxy; |
| 1545 | self.update_http_client()?; |
| 1546 | } |
| 1547 | Ok(()) |
| 1548 | } |
| 1549 | |
| 1550 | fn get_timeout(&self) -> u64 { |
| 1551 | self.get_config().timeout |
no test coverage detected