Skip to content

Commit f82b879

Browse files
authored
Add streaming and websocket support (#48)
1 parent e764b41 commit f82b879

File tree

14 files changed

+2358
-380
lines changed

14 files changed

+2358
-380
lines changed

Cargo.lock

Lines changed: 54 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,13 @@ napi-build = { version = "2", optional = true }
2424
[dependencies]
2525
bytes = "1.10.1"
2626
http = "1.0"
27-
# http-body = "1.0"
28-
# http-rewriter = { path = "../http-rewriter" }
29-
# napi = { path = "../napi-rs/crates/napi", features = ["napi4"], optional = true }
30-
# napi-derive = { path = "../napi-rs/crates/macro", optional = true }
31-
napi = { version = "3", features = ["napi4"], optional = true }
27+
tokio = { version = "1.45.1", features = ["sync", "macros", "rt", "io-util"] }
28+
tokio-util = { version = "0.7", features = ["codec"] }
29+
http-body = "1.0"
30+
http-body-util = "0.1"
31+
futures-core = "0.3"
32+
napi = { version = "3", features = ["napi4", "tokio_rt", "async"], optional = true }
3233
napi-derive = { version = "3", optional = true }
33-
# napi = { version = "2.12.2", default-features = false, features = ["napi4"], optional = true }
34-
# napi-derive = { version = "2.12.2", optional = true }
3534

3635
[dev-dependencies]
3736
tokio = { version = "1.45.1", features = ["rt-multi-thread", "macros"] }

0 commit comments

Comments
 (0)