catscii/src/main.rs

10 lines
258 B
Rust
Raw Normal View History

#[tokio::main]
async fn main() {
2023-05-13 15:15:06 -04:00
let res = reqwest::get("https://api.thecatapi.com/v1/images/search")
.await
.unwrap();
println!("Status: {}", res.status());
let body = res.text().await.unwrap();
println!("Body: {}", body);
}