HTTP Request from inside WASM using sebastianwessel/quickjs

This example uses sebastianwessel/quickjs.

See the output in browser developer console.

Actual code:


const fn = async () => {
  const res = await fetch('https://httpbin.org/anything');

  return res.text();
}

export default await fn();

Info