#![no_main] use std::collections::HashMap; use extism_pdk::*; #[plugin_fn] pub fn http_get(Json(req): Json) -> FnResult>> { info!("Request to: {}", req.url); let res = http::request::<()>(&req, None)?; Ok(Json(res.headers().clone())) }