Add support for WebSockets over HTTP/2 (#2894)

This commit is contained in:
Sabrina Jewson
2024-10-06 07:58:34 +00:00
committed by GitHub
parent d783a8b17e
commit 64e6edac05
14 changed files with 373 additions and 85 deletions
+13
View File
@@ -0,0 +1,13 @@
[package]
name = "example-websockets-http2"
version = "0.1.0"
edition = "2021"
publish = false
[dependencies]
axum = { path = "../../axum", features = ["ws", "http2"] }
axum-server = { version = "0.6", features = ["tls-rustls"] }
tokio = { version = "1", features = ["full"] }
tower-http = { version = "0.5.0", features = ["fs"] }
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }