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

Method receive_bytes

starlette/testclient.py:192–195  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

190 return cast(str, message["text"])
191
192 def receive_bytes(self) -> bytes:
193 message = self.receive()
194 self._raise_on_close(message)
195 return cast(bytes, message["bytes"])
196
197 def receive_json(self, mode: Literal["text", "binary"] = "text") -> Any:
198 message = self.receive()

Callers

nothing calls this directly

Calls 2

receiveMethod · 0.95
_raise_on_closeMethod · 0.95

Tested by

no test coverage detected