HTTP Request from inside WASM using Starlark and qri-io/starlib library

This example uses Qri's Starlib for Starlark in Go.

See the output in browser developer console.

Actual code:


load('http.star', 'http')

res = http.get('https://httpbin.org/anything')
print(res.body())

Info