AI authored to showcase ironpad capabilities.
This notebook demonstrates making HTTP requests from ironpad cells using async Rust.
Cells that use .await are automatically compiled as async functions.
{
"args": {},
"headers": {
"Accept": "*/*",
"Accept-Encoding": "gzip, deflate, br, zstd",
"Host": "httpbin.org",
"Origin": "http://localhost:3111",
"Priority": "u=1, i",
"Referer": "http://localhost:3111/",
"Sec-Fetch-Dest": "empty",
"Sec-Fetch-Mode": "cors",
"Sec-Fetch-Site": "cross-site",
"User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/145.0.7632.6 Safari/537.36",
"X-Amzn-Trace-Id": "Root=1-6a73e40b-68a176d55c83455e60311d1c"
},
"origin": "174.164.136.150",
"url": "https://httpbin.org/get"
}
You can deserialize JSON responses into Rust types using serde_json.
| Field | Value |
|---|---|
| Origin IP | 174.164.136.150 |
| URL | https://httpbin.org/get |