HTTP Request from inside WASM using PocketPy and EMSCRIPTEN_FETCH_SYNCHRONOUS

This example uses custom PocketPy module function implemented using emscripten_fetch() in synchronous mode.

See the output in browser developer console.

Actual code:


import http

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

Info