MCPcopy
hub / github.com/fastapi/fastapi / index

Function index

tests/test_ws_dependencies.py:28–31  ·  view source on GitHub ↗
(websocket: WebSocket, deps: DepList)

Source from the content-addressed store, hash-verified

26
27@app.websocket("/", dependencies=[create_dependency("index")])
28async def index(websocket: WebSocket, deps: DepList):
29 await websocket.accept()
30 await websocket.send_text(json.dumps(deps))
31 await websocket.close()
32
33
34@router.websocket("/router", dependencies=[create_dependency("routerindex")])

Callers

nothing calls this directly

Calls 2

dumpsMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…