- 04 Aug, 2022 1 commit
-
-
Alexandru Vasile authored
* Rename Middleware to Metrics Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Change documentation to reflect the `Metrics` trait Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Middleware name refactoring Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Http middleware renaming Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Rename examples Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Update http-server/src/server.rs Co-authored-by:
James Wilson <james@jsdw.me> * http: Use `request` instead of `HeaderMap` for logging Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Rename `Metrics` -> `Logger` Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Fix cargo clippy Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Fix examples Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Fix tests Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Fix cargo fmt Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Fix hyper dependency Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> Co-authored-by:
James Wilson <james@jsdw.me>
-
- 20 Jul, 2022 1 commit
-
-
Niklas Adolfsson authored
-
- 06 Jul, 2022 1 commit
-
-
Niklas Adolfsson authored
* WIP: refactoring * refactor http server * fix tests * Delete TODO.txt * fix tests again * add benches/src/lib.rs * remove bench changes; fast less deps * no more env_logger * update examples * ws server; expose headers in middleware * add back uncommented code * fix nits * make the code more readable * add back the tracing stuff * simplify code but one extra clone * fix tests again * revert async accept API * fix nits * different traits for WS and HTTP middleware * fix tests * revert benchmark change * Update core/src/server/helpers.rs * Update ws-server/Cargo.toml * add limit to batch responses as well * pre-allocate string for batches * small refactor
-
- 17 Dec, 2021 1 commit
-
-
Maciej Hirsz authored
* Nuke V2 * fmt * Formatting and imports * Updated benches * Fix doc comment link * Brace imports in ws-server * Reworking imports * std first * fmt * std on top * Update to match changed line numbers * Rename jsonrpsee_utils -> jsonrpsee_core * Migrating things types -> core * RpcError -> ErrorResponse * Merge types::client into core::client * Continued move types -> core * Removing features to make checks pass * Move rpc_module tests to tests crate * Fixed doc comment links * Add futures-util dependency for client * Remove dead code Co-authored-by:
Niklas Adolfsson <niklasadolfsson1@gmail.com> * fmt * Feature gate the Client trait * Move `Client` traits to `client` module Co-authored-by:
Niklas Adolfsson <niklasadolfsson1@gmail.com>
-
- 01 Dec, 2021 1 commit
-
-
Maciej Hirsz authored
* Squashed MethodSink * Middleware WIP * Passing all the information through * Unnecessary `false` * Apply suggestions from code review Co-authored-by:
David <dvdplm@gmail.com> * Add a setter for middleware (#577) * Fix try-build tests * Add a middleware setter and an example * Actually add the example * Grumbles * Use an atomic * Set middleware with a constructor instead * Resolve a todo * Update ws-server/src/server.rs Co-authored-by:
Maciej Hirsz <1096222+maciejhirsz@users.noreply.github.com> * Update ws-server/src/server.rs Co-authored-by:
Maciej Hirsz <1096222+maciejhirsz@users.noreply.github.com> * Update ws-server/src/server.rs Co-authored-by:
Maciej Hirsz <1096222+maciejhirsz@users.noreply.github.com> Co-authored-by:
Maciej Hirsz <1096222+maciejhirsz@users.noreply.github.com> * Middleware::on_response for batches * Middleware in HTTP * fmt * Server builder for HTTP * Use actual time in the example * HTTP example * Middleware to capture method not found calls * An example of adding multiple middlewares. (#581) * Add an example of adding multiple middlewares. * Update examples/multi-middleware.rs Co-authored-by:
Maciej Hirsz <1096222+maciejhirsz@users.noreply.github.com> * Update examples/Cargo.toml Co-authored-by:
Maciej Hirsz <1096222+maciejhirsz@users.noreply.github.com> Co-authored-by:
Maciej Hirsz <1096222+maciejhirsz@users.noreply.github.com> * Move `Middleware` to jsonrpsee-types (#582) * Move `Middleware` to jsonrpsee-types * Move Middleware trait to jsonrpsee-types * Add some docs. * Link middleware to `with_middleware` methods in docs * Doctests * Doc comment fixed * Clean up a TODO * Switch back to `set_middleware` * fmt * Tests * Add `on_connect` and `on_disconnect` * Add note to future selves Co-authored-by:
David <dvdplm@gmail.com>
-