pub fn get<T: DeserializeOwned + Send + 'static>(
url: &str,
times_to_try: u32,
) -> HttpResult<T>
Expand description
You can call get from an instance or a direct function.
url
- full url with args if you have them.times_to_try
- times to try before giving up. It starts with 1 second delay and doubles the delay each time.