Retrieve a new HTTP client pre-configured for VaaS usage. Returns an error if the HTTP backend cannot be initialized.
()
| 9 | /// Retrieve a new HTTP client pre-configured for VaaS usage. |
| 10 | /// Returns an error if the HTTP backend cannot be initialized. |
| 11 | pub fn new_http_client() -> VResult<reqwest::Client> { |
| 12 | Ok(reqwest::Client::builder() |
| 13 | .user_agent(USER_AGENT) |
| 14 | .http1_only() |
| 15 | .build()?) |
| 16 | } |
| 17 | |
| 18 | pub async fn send_get_request( |
| 19 | client: &reqwest::Client, |
no test coverage detected