MCPcopy
hub / github.com/fastapi/fastapi / routerprefixindex

Function routerprefixindex

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

Source from the content-addressed store, hash-verified

40
41@prefix_router.websocket("/", dependencies=[create_dependency("routerprefixindex")])
42async def routerprefixindex(websocket: WebSocket, deps: DepList):
43 await websocket.accept()
44 await websocket.send_text(json.dumps(deps))
45 await websocket.close()
46
47
48app.include_router(router, dependencies=[create_dependency("router2")])

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…