HTTP Request from inside WASM using Risor's fetch()

This example uses built-in fetch() function.

See the output in browser developer console.

Actual code:


resp := fetch(url)
print(resp.text())

Info