()
| 14 | |
| 15 | impl WebFetchTool { |
| 16 | pub fn new() -> Self { |
| 17 | Self { |
| 18 | client: Client::builder() |
| 19 | .user_agent("Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36") |
| 20 | .timeout(std::time::Duration::from_secs(MAX_TIMEOUT_SECS)) |
| 21 | .build() |
| 22 | .unwrap(), |
| 23 | } |
| 24 | } |
| 25 | } |
| 26 | |
| 27 | #[derive(Debug, Serialize, Deserialize)] |