wasmedge-quickjs git:(main) x docker run --platform=linux/amd64 --rm -v$PWD:/app -w/app wasmedge/slim-runtime: 0.13.5 wasmedge --dir .:. target/wasm32-wasi/release
/wasmedge_quickjs.wasm example_js/wasi_http_fetch.js WasmEdge Runtime
test_fetch
"args": {
{
},
}
{
"id": "1"
"headers": {
},
"Accept":
"*/*"
,
"Host": "httpbin.org",
"X-Amzn-Trace-Id": "Root-1-66763a52-550721621838a2a627dddde6"
"origin": "133.200.176.128",
"url": "http://httpbin.org/get?id=1"
test_fetch_put
"args": {},
"data": "{\"a\":1}",
"files": {},
"form": {},
"headers": {
}
},
"Accept": "*/*'
"
"Content-Length": "7",
"Context-Type": "application/json",
"Host": "httpbin.org",
"X-Amzn-Trace-Id": "Root-1-66763a52-2db05a7179ab2b301e8fab45"
"json": {
},
"a": 1
"origin": "133.200.176.128",
"url": "http://httpbin.org/put"
test_fetch_post
"args": {},
"data": "post_body",
"files": {},
}
"form": {},
"headers": {
},
"Accept": "*/*"¸
,
"Content-Length": "9",
"Host": "httpbin.org",
"X-Amzn-Trace-Id": "Root-1-66763a52-0442f4396f278cf509b76af6"
"json": null,
"origin": "133.200.176.128",
"url": "http://httpbin.org/post"