Function get_async

Source
pub async fn get_async<T>(
    url: &str,
    api_secret: Option<String>,
) -> Result<T, Error>
where for<'de> T: Deserialize<'de> + Send + 'static,
Expand description

Helper function to easily issue an async HTTP GET request against a given URL that returns a future. Handles request building, JSON deserialization and response code checking.