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

Method text

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

Get response body as a text string.

(self)

Source from the content-addressed store, hash-verified

82 return json.loads(await self.text())
83
84 async def text(self):
85 """
86 Get response body as a text string.
87 """
88 return await self._response.text()
89
90
91class _FetchPromise:

Callers 1

jsonMethod · 0.95

Calls 1

textMethod · 0.45

Tested by

no test coverage detected