This example uses custom PocketPy module function implemented using emscripten_fetch() in synchronous mode.
emscripten_fetch()
See the output in browser developer console.
Actual code:
import http print(http.get('https://httpbin.org/anything'))