refactor: Transport trait and worker transport, and streamable http client with those new features. (#167)
* refactor: a transport trait and streamable http client * test: test with js streamable http server * refactor: separate sse stream connection * fix(test): streamable http client test with js * fix(test): wait longer time for js server startup
This commit is contained in:
parent
01eedb7770
commit
9a771fb157
1 changed files with 2761 additions and 1315 deletions
|
|
@ -10,6 +10,7 @@ publish = false
|
|||
rmcp = { path = "../../crates/rmcp", features = [
|
||||
"client",
|
||||
"transport-sse",
|
||||
"transport-streamable-http-client",
|
||||
"transport-child-process",
|
||||
"tower",
|
||||
"auth"
|
||||
|
|
@ -25,6 +26,7 @@ anyhow = "1.0"
|
|||
url = "2.4"
|
||||
tower = "0.5"
|
||||
axum = "0.8"
|
||||
reqwest = "0.12"
|
||||
|
||||
[[example]]
|
||||
name = "clients_sse"
|
||||
|
|
@ -34,6 +36,10 @@ path = "src/sse.rs"
|
|||
name = "clients_std_io"
|
||||
path = "src/std_io.rs"
|
||||
|
||||
[[example]]
|
||||
name = "clients_streamable_http"
|
||||
path = "src/streamable_http.rs"
|
||||
|
||||
[[example]]
|
||||
name = "clients_everything_stdio"
|
||||
path = "src/everything_stdio.rs"
|
||||
|
|
|
|||
Loading…
Reference in a new issue