- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for router_lifespan (0.21 sec)
-
tests/test_router_events.py
} @asynccontextmanager async def router_lifespan( app: FastAPI, ) -> AsyncGenerator[Dict[str, Union[str, bool]], None]: yield { "router_specific": True, "overridden": "router", # should override parent } router = APIRouter(lifespan=router_lifespan) app = FastAPI(lifespan=lifespan) app.include_router(router)
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Sat Aug 24 19:09:52 UTC 2024 - 7.3K bytes - Viewed (0)