📨 Send metadata after the response body
uvicorn 0.54.0 adds response trailers and 103 Early Hints to its experimental HTTP/2 implementation through zttp.
uv add uvicorn==0.54.0 "zttp>=0.0.34"- Send HTTP/2 response trailers (#3146). The ASGI
http.response.trailersextension lets applications send metadata, such as checksums, after the response body. Clients must sendTE: trailersto receive them. Multiple trailer messages are combined before completing the response. - HTTP/2 remains experimental and opt-in. Enable it with
--http zttp --http2. Upgrade-based h2c and WebSockets over HTTP/2 remain unsupported.
💡 Hint at resources before the final response
- Send
103 Early Hintsover HTTP/2 (#3137). Applications can use the ASGIhttp.response.early_hintextension to send resource hints before the final response. Each supplied link becomes a separateLinkheader.
Full changelog: 0.53.0...0.54.0