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

Method __call__

tests/test_routing.py:343–347  ·  view source on GitHub ↗
(self, scope: Scope, receive: Receive, send: Send)

Source from the content-addressed store, hash-verified

341
342class WebSocketEndpoint:
343 async def __call__(self, scope: Scope, receive: Receive, send: Send) -> None:
344 websocket = WebSocket(scope=scope, receive=receive, send=send)
345 await websocket.accept()
346 await websocket.send_json({"URL": str(websocket.url_for("websocket_endpoint"))})
347 await websocket.close()
348
349
350mixed_protocol_app = Router(

Callers

nothing calls this directly

Calls 5

acceptMethod · 0.95
send_jsonMethod · 0.95
closeMethod · 0.95
WebSocketClass · 0.90
url_forMethod · 0.45

Tested by

no test coverage detected