Function grin_api::client::get_async [−][src]
pub async fn get_async<T>(
url: &str,
api_secret: Option<String>
) -> Result<T, Error> where
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.