Fix dx serve proxying of websocket connections established from the browser (#3895)

* better ws request detection

* proxy ws connections

* improve naming

* perform case-insensitive header comparison

* preserve request headers when proxying websocket connection

* avoid side effects in conversion function

* fix websocket proxying for axum 0.8

* remove redundant conversions

---------

Co-authored-by: Evan Almloff <evanalmloff@gmail.com>
This commit is contained in:
Arvid Fahlström MyrmanandEvan Almloff authored and GitHub committed 2025-05-07 13:59:15 -07:00
1 parent f9d89b0ac1
commit 8ca8b042af
4 files changed
+147 -19

No files matched your search

+1
View File
@@ -41,6 +41,7 @@ html_parser = { workspace = true }
cargo_metadata = { workspace = true }
tokio = { workspace = true, features = ["full"] }
tokio-stream = { workspace = true }
tokio-tungstenite = { workspace = true }
chrono = { workspace = true }
anyhow = { workspace = true }
hyper = { workspace = true }