MCPcopy Index your code
hub / github.com/pyscript/pyscript / _get_response

Method _get_response

core/src/stdlib/pyscript/fetch.py:121–127  ·  view source on GitHub ↗

Get the cached response, or await the promise if not yet resolved.

(self)

Source from the content-addressed store, hash-verified

119 return promise._response
120
121 async def _get_response(self):
122 """
123 Get the cached response, or await the promise if not yet resolved.
124 """
125 if not self._promise._response:
126 await self._promise
127 return self._promise._response
128
129 async def arrayBuffer(self):
130 response = await self._get_response()

Callers 5

arrayBufferMethod · 0.95
blobMethod · 0.95
bytearrayMethod · 0.95
jsonMethod · 0.95
textMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected