MCPcopy Index your code
hub / github.com/microsoft/playwright-python / read_all

Method read_all

playwright/_impl/_stream.py:39–46  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

37 await self._loop.run_in_executor(None, lambda: file.close())
38
39 async def read_all(self) -> bytes:
40 binary = b""
41 while True:
42 chunk = await self._channel.send("read", None, {"size": 1024 * 1024})
43 if not chunk:
44 break
45 binary += base64.b64decode(chunk)
46 return binary

Callers 1

read_info_bufferMethod · 0.80

Calls 1

sendMethod · 0.45

Tested by

no test coverage detected