A WebTransport sample provides a Python webserver, intended to be connected from the web client.
This Rust sample aims to reimplement the Python webserver (with the same logic) in async Rust using the library Wtransport.
Generate certificate as explained here.
Copy the certificate into the project root directory as cert.pem
and key.pem
.
Run the server:
cargo build --release
target/release/wtransport-sample
Run the client (adapt the certificate fingerprint):
chromium --origin-to-force-quic-on=localhost:4433 --ignore-certificate-errors-spki-list=rOxva4Y8FcAUzOje9N66vJTYLxhSK9r5t2tVVEe2bdE= client.html