Repository navigation
Releases
Version 0.54.0
π¨ 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
Version 0.53.0
π Opt-in HTTP/2 support
uvicorn 0.53.0 adds experimental HTTP/2 through zttp, alongside a new zuvloop integration and connection-handling improvements.
uv add uvicorn==0.53.0- Serve HTTP/1.1 and HTTP/2 with
zttp(#2982, #3101). Installzttp, then enable HTTP/2 with--http zttp --http2. Uvicorn negotiates HTTP/2 over TLS with ALPN and supports cleartext prior knowledge. - HTTP/2 remains experimental. Upgrade-based h2c and WebSockets over HTTP/2 are not supported.
βοΈ More event loop choice
- Run Uvicorn with
zuvloop(#3104). Installzuvloopseparately and select it explicitly with--loop zuvloopon CPython 3.14 or newer.
π‘οΈ More reliable connections and proxies
- Honor
Connection: closetoken lists (#3103). Uvicorn now parses comma-separated tokens case-insensitively across HTTP implementations. - Trust IPv6 loopback proxies by default (#3119). The default
FORWARDED_ALLOW_IPSvalue now includes::1. - Keep upgraded WebSockets alive (#3107). Uvicorn cancels the HTTP keep-alive timer when the connection becomes a WebSocket.
Full changelog: 0.52.4...0.53.0
Version 0.52.4
Fixed
- Remove duplicate
Dateheaders from accepted WebSocket handshakes withwebsockets-sansio(#3078)
Full Changelog: 0.52.3...0.52.4
Version 0.52.3
Changed
- Update
zttpto 0.0.24 and use its combined receive path, improving HTTP/1.1 request parsing performance (#3067)
Full Changelog: 0.52.2...0.52.3
Version 0.52.2
Fixed
- Update
zttpto 0.0.22, fixing bodyless request receives and improving HTTP/1 request parsing performance (#3063)
Full Changelog: 0.52.1...0.52.2
Version 0.52.1
Fixed
- Complete the closing handshake on server-initiated WebSocket closes in the
websockets-sansioandwsprotoimplementations, waiting for the client's close reply with a 10 second timeout instead of resetting the connection (#3053) - Add missing write flow control to the
websockets-sansioimplementation, preventing data truncation on server-initiated closes with large in-flight payloads (#3048) - Handle connection loss while a WebSocket write is waiting on backpressure (#3050)
- Remove duplicate
Content-TypeandContent-Lengthheaders from WebSocket denial responses on thewebsockets-sansioimplementation, and deliver non-UTF-8 denial bodies intact (#3041)
Full Changelog: 0.52.0...0.52.1
Version 0.52.0
This release adds an experimental HTTP/1.1 implementation backed by zttp, a sans-IO HTTP parser I've been developing on the side: a core written in Zig, with bindings to Python. It has been running under a fuzzer for some weeks now, and has been through multiple rounds of security auditing.
It is still experimental, so don't put it in front of production traffic yet. Try it with --http zttp, and please send any feedback to the issue tracker.
Added
- Add an experimental
zttpHTTP/1.1 implementation, selectable with--http zttp(#2979)
Fixed
- Keep non-ASCII WebSocket request headers intact with websockets 17.0, which encodes them with ISO-8859-1 (#3036)
Full Changelog: 0.51.0...0.52.0
Version 0.51.0
What's Changed
- Restart workers with overlap on SIGHUP for near-zero-downtime reloads by @Kludex in #3025
- Remove colorama from the standard extra by @Kludex in #3027
Full Changelog: 0.50.2...0.51.0
Version 0.50.2
What's Changed
Full Changelog: 0.50.1...0.50.2
Version 0.50.1
What's Changed
- Split comma-separated
Sec-WebSocket-Protocolvalues in the websockets-sansio implementation by @Aayush7352 in #3019
New Contributors
- @Aayush7352 made their first contribution in #3019
Full Changelog: 0.50.0...0.50.1