██████╗ ██████╗ █████╗ ██████╗ ██╗ ██╔════╝ ██╔══██╗██╔══██╗██╔══██╗██║ ██║ ███╗██████╔╝███████║██████╔╝██║ ██║ ██║██╔══██╗██╔══██║██╔══██╗██║ ╚██████╔╝██║ ██║██║ ██║██████╔╝███████╗ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚═════╝ ╚══════╝
Async HTTP API Navigator — GET & POST made simple in Rust 🦀
| Tool | Purpose |
|---|---|
| Rust | Systems language — safe, fast, no GC |
| reqwest | Async HTTP client (GET, POST, JSON) |
| tokio | Async runtime for Rust |
| serde_json | JSON serialization |
[dependencies]
reqwest = { version = "0.12", features = ["json"] }
tokio = { version = "1", features = ["full"] }
serde_json = "1"cargo build
cargo run// GET
let res = reqwest::get("https://api.example.com/data").await?;
// POST
let client = reqwest::Client::new();
let res = client.post("https://api.example.com/data")
.json(&serde_json::json!({ "key": "value" }))
.send()
.await?;MIT