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

Method seek

starlette/datastructures.py:466–470  ·  starlette/datastructures.py::UploadFile.seek
(self, offset: int)

Source from the content-addressed store, hash-verified

464 return await run_in_threadpool(self.file.read, size)
465
466 async def seek(self, offset: int) -> None:
467 if self._in_memory:
468 self.file.seek(offset)
469 else:
470 await run_in_threadpool(self.file.seek, offset)
471
472 async def close(self) -> None:
473 if self._in_memory:

Callers 8

test_uploadfile_rollingFunction · 0.95
sendMethod · 0.80
parseMethod · 0.80
_handle_single_rangeMethod · 0.80
apply_compressionMethod · 0.80

Calls 1

run_in_threadpoolFunction · 0.90

Tested by 4

test_uploadfile_rollingFunction · 0.76
sendMethod · 0.64