MCPcopy
hub / github.com/fastapi/fastapi / routerindexparams

Function routerindexparams

tests/test_ws_router.py:51–55  ·  view source on GitHub ↗
(websocket: WebSocket, pathparam: str, queryparam: str)

Source from the content-addressed store, hash-verified

49
50@router.websocket("/router/{pathparam:path}")
51async def routerindexparams(websocket: WebSocket, pathparam: str, queryparam: str):
52 await websocket.accept()
53 await websocket.send_text(pathparam)
54 await websocket.send_text(queryparam)
55 await websocket.close()
56
57
58async def ws_dependency():

Callers

nothing calls this directly

Calls 1

closeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…