MCPcopy Create free account
hub / github.com/Rust-Web-Development/code / main

Function main

ch_01/minimal_reqwest/src/main.rs:4–11  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2
3#[tokio::main]
4async fn main() -> Result<(), Box<dyn std::error::Error>> {
5 let resp = reqwest::get("https://httpbin.org/ip")
6 .await?
7 .json::<HashMap<String, String>>()
8 .await?;
9 println!("{:#?}", resp);
10 Ok(())
11}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected