MCPcopy Create free account
hub / github.com/encode/starlette / send_bytes

Method send_bytes

starlette/testclient.py:169–170  ·  view source on GitHub ↗
(self, data: bytes)

Source from the content-addressed store, hash-verified

167 self.send({"type": "websocket.receive", "text": data})
168
169 def send_bytes(self, data: bytes) -> None:
170 self.send({"type": "websocket.receive", "bytes": data})
171
172 def send_json(self, data: Any, mode: Literal["text", "binary"] = "text") -> None:
173 text = json.dumps(data, separators=(",", ":"), ensure_ascii=False)

Callers

nothing calls this directly

Calls 1

sendMethod · 0.95

Tested by

no test coverage detected