FastAPI - Middleware and Hooks
Which of the following is the correct syntax to define a shutdown event handler in FastAPI?
@app.on_event("shutdown") to run code when the app stops.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions