MCPcopy
hub / github.com/encode/starlette / read

Method read

starlette/datastructures.py:461–464  ·  starlette/datastructures.py::UploadFile.read
(self, size: int = -1)

Source from the content-addressed store, hash-verified

459 self.file.write(data)
460
461 async def read(self, size: int = -1) -> bytes:
462 if self._in_memory:
463 return self.file.read(size)
464 return await run_in_threadpool(self.file.read, size)
465
466 async def seek(self, offset: int) -> None:
467 if self._in_memory:

Callers 13

test_uploadfile_rollingFunction · 0.95
receiveMethod · 0.80
handle_requestMethod · 0.80
_handle_simpleMethod · 0.80
_handle_single_rangeMethod · 0.80
appFunction · 0.80
multi_items_appFunction · 0.80
app_with_headersFunction · 0.80
echo_bodyFunction · 0.80

Calls 1

run_in_threadpoolFunction · 0.90

Tested by 10

test_uploadfile_rollingFunction · 0.76
receiveMethod · 0.64
handle_requestMethod · 0.64
appFunction · 0.64
multi_items_appFunction · 0.64
app_with_headersFunction · 0.64
echo_bodyFunction · 0.64
test_build_environFunction · 0.64