Expand description
Experimental support for Quic and HTTP/3.
To enable Rocket’s experimental support for HTTP/3 and Quic, enable the
http3-preview
feature and provide a valid TLS configuration:
// Add the following to your Cargo.toml:
[dependencies]
rocket = { version = "0.6.0-dev", features = ["http3-preview"] }
// In your Rocket.toml or other equivalent config source:
[default.tls]
certs = "private/rsa_sha256_cert.pem"
key = "private/rsa_sha256_key.pem"
The launch message confirms that Rocket is serving traffic over Quic in addition to TCP:
> 🚀 Rocket has launched on https://127.0.0.1:8000 (QUIC + mTLS)
mTLS is not yet supported via this implementation.