Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for routerindexparams (0.08 sec)

  1. tests/test_ws_router.py

    async def routerindex2(websocket: WebSocket):
        await websocket.accept()
        await websocket.send_text("Hello, router!")
        await websocket.close()
    
    
    @router.websocket("/router/{pathparam:path}")
    async def routerindexparams(websocket: WebSocket, pathparam: str, queryparam: str):
        await websocket.accept()
        await websocket.send_text(pathparam)
        await websocket.send_text(queryparam)
        await websocket.close()
    
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Jun 11 19:08:14 UTC 2023
    - 7.5K bytes
    - Viewed (0)
Back to top