Creates a ureq agent with the given timeout.
(timeout: Duration)
| 31 | |
| 32 | /// Creates a ureq agent with the given timeout. |
| 33 | pub fn agent_with_timeout(timeout: Duration) -> ureq::Agent { |
| 34 | ureq::Agent::config_builder() |
| 35 | .timeout_global(Some(timeout)) |
| 36 | .build() |
| 37 | .into() |
| 38 | } |
| 39 | |
| 40 | /// Uploads pending tokens to the worldwide counter. |
| 41 | /// Returns the new worldwide total on success, or None on any failure. |
no test coverage detected