Commit e64bccf
feat: client rpc middleware (#1521)
* feat: client rpc middleware
* PoC works
* cargo fmt
* more refactoring
* use Cow in Notification to avoid alloc
* cleanup some todos
* rpc trait: return Result<MethodResponse, Err>
* remove infallible err
* make it compile
* fix tests
* introduce client method response type
* fix faulty imports
* minor cleanup
* introduce Batch/BatchEntry for middleware
* remove ignore for batch test
* fix rustdocs
* add rpc middleware for the async client
* remove serialize specific types
* commit missing file
* no serde_json::Value
* more nit fixing
* more cleanup
* refactor method response client
* fix some nits
* add client middleware rpc
* fix wasm build
* add client middleware example
* Update examples/examples/rpc_middleware_client.rs
* ToJson -> RawValue
* replace Future type with impl Trait
* revert changelog
* remove logger response future
* some cleanup
* move request timeout from transport to client
* more nit fixing
* have pass over examples
* show proper batch middleware example
* middleware: clean up batch type
* fix wasm build
* Update Cargo.toml
* doc: fix typo
* core: remove tracing mod
* fix more clippy
* remove middleware error
* address review grumbles
* fix tests
* fix tests
* ErrorResponse -> BatchEntryErr
* commit missing file
* move deserialize_with_ext to server again
* Update core/src/client/mod.rs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* client: enable default rpc logger
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>1 parent 2219029 commit e64bccf
File tree
64 files changed
+2773
-1471
lines changed- benches
- client
- http-client
- src
- transport
- wasm-client
- src
- ws-client
- src
- core
- src
- client
- async_client
- middleware
- layer
- server
- examples/examples
- proc-macros
- src
- tests/ui/correct
- server/src
- middleware
- http
- rpc
- layer
- tests
- transport
- tests/tests
- types/src
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
64 files changed
+2773
-1471
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
104 | | - | |
| 104 | + | |
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
118 | | - | |
| 118 | + | |
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
| |||
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
131 | | - | |
| 131 | + | |
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
| |||
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
141 | | - | |
| 141 | + | |
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
| |||
150 | 150 | | |
151 | 151 | | |
152 | 152 | | |
153 | | - | |
| 153 | + | |
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
35 | 34 | | |
36 | 35 | | |
37 | 36 | | |
| |||
0 commit comments