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

Method body

starlette/requests.py:254–260  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

252 yield b""
253
254 async def body(self) -> bytes:
255 if not hasattr(self, "_body"):
256 chunks: list[bytes] = []
257 async for chunk in self.stream():
258 chunks.append(chunk)
259 self._body = b"".join(chunks)
260 return self._body
261
262 async def json(self) -> Any:
263 if not hasattr(self, "_json"): # pragma: no branch

Callers 12

jsonMethod · 0.95
appFunction · 0.95
test_request_rcvFunction · 0.95
app_read_bodyFunction · 0.95
endpointFunction · 0.95
read_body_and_raise_excFunction · 0.80
handler_that_reads_bodyFunction · 0.80
endpoint_with_pathsendFunction · 0.80
dispatchMethod · 0.80
homepageFunction · 0.80
dispatchMethod · 0.80
sleepyFunction · 0.80

Calls 2

streamMethod · 0.95
appendMethod · 0.45

Tested by 11

appFunction · 0.76
test_request_rcvFunction · 0.76
app_read_bodyFunction · 0.76
endpointFunction · 0.76
read_body_and_raise_excFunction · 0.64
handler_that_reads_bodyFunction · 0.64
endpoint_with_pathsendFunction · 0.64
dispatchMethod · 0.64
homepageFunction · 0.64
dispatchMethod · 0.64
sleepyFunction · 0.64