Function ::http::get

Overview
async fn get(url: String) -> Result

Shorthand for generating a get request.

Examples

let response = http::get("http://worldtimeapi.org/api/ip").await?;
let json = response.json().await?;

let timezone = json["timezone"];