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

Method send_bytes

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

sendMethod · 0.95

Tested by

no test coverage detected