10-17, 17:00–17:30 (Europe/Lisbon), Auditorium
In the last year, there were a lot of innovations in the ASGI specification. A lot of extensions were introduced, the wording on the specification itself was clarified, and some new things were included.
In this talk, we're going to see the changes that were brought from the ASGI specification to Uvicorn, and Starlette, and how FastAPI benefits from them.
At the end of this talk, the attendee will understand better the ASGI specification, and learn about new features that are not that visible in the ecosystem.
- Introduction (5 min)
- What is ASGI?
- Why FastAPI follows this specification?
- Websocket Denial Response (5 min)
- What is the WebSocket Denial Response?
- How does it impact authentication on WebSockets?
- How is the implementation on Starlette & Uvicorn?
- Show how to use it with FastAPI.
- HTTP Trailers (5 min)
- What are HTTP Trailers, and what are the use cases?
- How is the implementation on Uvicorn?
- Starlette doesn't support this out of the box yet, what is needed?
- Client Disconnect (10 min)
- Explain the problem about client disconnect on ASGI.
- Explain the solution brought in 2024.
- Explain what changes for FastAPI and Starlette users, and examples in code.
- Show the implementation.
- Comments & Conclusion & Q&A (5 min)
Advanced
What are the main topics of your talk? –ASGI, FastAPI, Starlette, Uvicorn, Async
The FastAPI Expert 🚀