public

Async & HTTP

read-only

AI authored to showcase ironpad capabilities.

Fetching Data from the Web

This notebook demonstrates making HTTP requests from ironpad cells using async Rust. Cells that use .await are automatically compiled as async functions.

[1]HTTP GET
1 panel
Saved output from the author's last run. Press Run to execute live in your browser.
{
  "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"
}

Parsing JSON

You can deserialize JSON responses into Rust types using serde_json.

[2]JSON Parse
1 panel
Saved output from the author's last run. Press Run to execute live in your browser.
Field Value
Origin IP 174.164.136.150
URL https://httpbin.org/get