gistlib
main.rsuse reqwest::Error; #[tokio::main] async fn main() -> Result<(), Error> { let response = reqwest::get("https://api.example.com").await?; let body = response.text().await?; println!("Response: {}", body); Ok(()) } 232 chars12 lines
use reqwest::Error; #[tokio::main] async fn main() -> Result<(), Error> { let response = reqwest::get("https://api.example.com").await?; let body = response.text().await?; println!("Response: {}", body); Ok(()) }
gistlibby LogSnag