- Sort Score
- Result 10 results
- Languages All
Results 21 - 21 of 21 for geturl (0.3 sec)
-
docs_src/app_testing/tutorial002.py
from fastapi import FastAPI from fastapi.testclient import TestClient from fastapi.websockets import WebSocket app = FastAPI() @app.get("/") async def read_main(): return {"msg": "Hello World"} @app.websocket("/ws") async def websocket(websocket: WebSocket): await websocket.accept() await websocket.send_json({"msg": "Hello WebSocket"}) await websocket.close() def test_read_main():
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Wed Feb 08 10:23:07 GMT 2023 - 757 bytes - Viewed (0)