Skip to main content
Version: Next

SupportsRead

A file-like object that is not an io.IOBase stream, read whole with a single read() call.

Its result is sent as one chunk, so the source is held in memory whole and gets a single attempt. An io.IOBase stream, such as an open file or an io.BytesIO, is read in chunks instead. An async def read, as aiofiles provides, is accepted by ApifyClientAsync.

Index

Methods

Methods

read

  • read(): (bytes | str) | Awaitable[bytes | str]
  • Read the whole source.


    Returns (bytes | str) | Awaitable[bytes | str]

Page Options