Repository navigation
Upgrading
Tuntii edited this page Dec 3, 2026
·
1 revision
2.0 adds HTTP/3 (HTTP/3), HTTP/2 trailer fields for gRPC unary (gRPC) and Mustache templates (Templates). One change can stop existing code from compiling:
Listener has a new field, http3. A Listener literal that lists its values by position no longer
compiles (too few fields in Listener literal). Name the fields:
// 1.x, positional: fails on 2.0
viltrum.Listener{'0.0.0.0:8443', tls, true}
// 2.0
viltrum.Listener{
addr: '0.0.0.0:8443'
tls: tls
http2: true
}Literals with named fields, as in the docs and examples, need no change. Nothing else changed in a way that
breaks callers. A listener answers HTTP/3 only when you set http3: true.
Two behaviours changed with no code change on your side:
- An HTTP/2 client with more than 16 streams open, each sending a small request body, no longer has the bodies past the 16th refused.
-
c.set_trailerexists. Trailer fields go out over HTTP/2 only; HTTP/1.1 and HTTP/3 responses send none.
The full list is in CHANGELOG.md.