jsonrpsee:ffb1fc41911aea487fa31b75b77793f8745ea403 commits
https://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commits/ffb1fc41911aea487fa31b75b77793f8745ea403
2022-07-28T22:24:51+01:00
https://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/ffb1fc41911aea487fa31b75b77793f8745ea403
Revert "add id to tracing span"
2022-07-28T22:24:51+01:00
patrick
patrickkuo@me.com
This reverts commit <a href="/parity/mirrors/jsonrpsee/-/commit/5e01e6beb344cd0465d82d07cbcb21b495ac3f4e" data-reference-type="commit" data-original="5e01e6beb344cd0465d82d07cbcb21b495ac3f4e" data-link="false" data-link-reference="false" data-project="559" data-commit="5e01e6beb344cd0465d82d07cbcb21b495ac3f4e" data-container="body" data-placement="top" title="add id to tracing span" class="gfm gfm-commit has-tooltip">5e01e6be</a>.
https://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/5e01e6beb344cd0465d82d07cbcb21b495ac3f4e
add id to tracing span
2022-07-28T10:11:54+01:00
patrick
patrickkuo@me.com
https://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/42759bbb886fc33a6fac96359232906618537e44
feat(middleware): expose type of the method call (#820)
2022-07-20T16:24:52+01:00
Niklas Adolfsson
niklasadolfsson1@gmail.com
https://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/a26f1fb70913d59c2866ace97a24d5517f9769a3
fix clippy (#817)
2022-07-06T22:49:10+02:00
Niklas Adolfsson
niklasadolfsson1@gmail.com
https://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/3ee635ff108ccdc1045e430aaadcf9dfe5447b67
middleware refactoring (#793)
2022-07-06T17:45:53+02:00
Niklas Adolfsson
niklasadolfsson1@gmail.com
* 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
https://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/00c2ce65e210c6a2e231d38b5f866a0a87db4cd5
feat(logging): add `tracing span` per JSON-RPC call (#722)
2022-06-21T08:10:53+02:00
Niklas Adolfsson
niklasadolfsson1@gmail.com
* less verbose logging + tracing based on method name
* add tracing per rpc call
* fix nits
* remove unsed feature
* fix build
* http make logging more human friendly
* unify logging format
* deps: make tracing hard dependency
* fix tests
* fix nit
* fix build
* fix nits
* Update core/src/client/async_client/mod.rs
* Update core/Cargo.toml
* Update core/src/lib.rs
https://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/5a344c0c39bb2bf15c42350cc9b199789a179fa1
fix(servers): more descriptive errors when calls fail (#790)
2022-06-13T21:28:35+02:00
Niklas Adolfsson
niklasadolfsson1@gmail.com
* fix(servers): more descriptive errors calls fail
Closing #775
* fix tests
* rename constants
* address grumbles
https://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/600cad0829488c2d09eb4e4cf8ff21c1fcbfd761
fix(ws server): support `*` in host and origin filtering (#781)
2022-06-13T18:51:50+02:00
Niklas Adolfsson
niklasadolfsson1@gmail.com
* initial rewrite to re-use HTTP access control
* clean things up
* Update core/src/error.rs
* Update core/src/error.rs
* allow origin: add back removed Display impl
* cleanup again
* Update http-server/src/lib.rs
* Update examples/examples/cors_server.rs
* Update core/src/server/access_control/mod.rs
Co-authored-by: <span data-trailer="Co-authored-by:"><a href="mailto:47201679+TarikGul@users.noreply.github.com" title="47201679+TarikGul@users.noreply.github.com"><img alt="default avatar" src="https://secure.gravatar.com/avatar/df298f2c3f8e80e82c0ffe31a9302aa4?s=32&d=identicon" class="avatar s16 avatar-inline"></a><a href="mailto:47201679+TarikGul@users.noreply.github.com" title="47201679+TarikGul@users.noreply.github.com">Tarik Gul</a> <<a href="mailto:47201679+TarikGul@users.noreply.github.com" title="47201679+TarikGul@users.noreply.github.com">47201679+TarikGul@users.noreply.github.com</a>></span>
* Update http-server/src/server.rs
Co-authored-by: <span data-trailer="Co-authored-by:"><a href="mailto:47201679+TarikGul@users.noreply.github.com" title="47201679+TarikGul@users.noreply.github.com"><img alt="default avatar" src="https://secure.gravatar.com/avatar/df298f2c3f8e80e82c0ffe31a9302aa4?s=32&d=identicon" class="avatar s16 avatar-inline"></a><a href="mailto:47201679+TarikGul@users.noreply.github.com" title="47201679+TarikGul@users.noreply.github.com">Tarik Gul</a> <<a href="mailto:47201679+TarikGul@users.noreply.github.com" title="47201679+TarikGul@users.noreply.github.com">47201679+TarikGul@users.noreply.github.com</a>></span>
* fix bad comment
* remove todo
* fix grumbles
* more grumbles
* rename and document a bit
* remove `Access-Control-Allow-Origin` in whitelist
* fix nit: pub(super)
* fix bad naming
Co-authored-by: <span data-trailer="Co-authored-by:"><a href="mailto:47201679+TarikGul@users.noreply.github.com" title="47201679+TarikGul@users.noreply.github.com"><img alt="default avatar" src="https://secure.gravatar.com/avatar/df298f2c3f8e80e82c0ffe31a9302aa4?s=32&d=identicon" class="avatar s16 avatar-inline"></a><a href="mailto:47201679+TarikGul@users.noreply.github.com" title="47201679+TarikGul@users.noreply.github.com">Tarik Gul</a> <<a href="mailto:47201679+TarikGul@users.noreply.github.com" title="47201679+TarikGul@users.noreply.github.com">47201679+TarikGul@users.noreply.github.com</a>></span>
https://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/2ac4cb26f272aba97f391d089613d2a521bd94a5
fix(http server): omit jsonrpc details in health API (#785)
2022-06-01T15:23:11+02:00
Niklas Adolfsson
niklasadolfsson1@gmail.com
* fix(http server): omit jsonrpc details health API
Closing <a href="https://github.com/paritytech/jsonrpsee/issues/784" rel="nofollow noreferrer noopener" target="_blank">https://github.com/paritytech/jsonrpsee/issues/784</a>
Ordinary GET requests doesn't expect the body the be formatted as
`JSON-RPC` responses which this fixes.
* address grumbles
* Update http-server/src/server.rs
* cargo fmt
https://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/734196f10e2137633cb1b831eea46f69501d5f3b
feat: add http health API (#763)
2022-05-11T08:53:06+00:00
Niklas Adolfsson
niklasadolfsson1@gmail.com
* feat: add http health API
* Update http-server/src/server.rs
* remove needless change
* fix middleware nits
https://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/19aaf6561962e794451c5da38861ad7fa7749be9
Make it possible to disable batch requests support (#744)
2022-05-04T11:08:46+02:00
Igor Aleksanov
popzxc@yandex.ru
https://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/816ecca5d1061812e11de771004aa591fbf29ad0
feat: add a way to limit the number of subscriptions per connection (#739)
2022-05-03T16:00:42+02:00
Niklas Adolfsson
niklasadolfsson1@gmail.com
* feat: limit the number of subscriptions
Closing #729
* fix nit
* Update core/src/server/helpers.rs
* add integration tests + some fixes so it works
* cargo fmt
* fix doc links
* Unsubscribe calls should avoid subscription limits
Point to Tokio 1.16 (we use a method from it), and a little special treatment for unsubscribe methods
* No resource limiting for Unsubscribe calls
* Test that we can still unsubscribe after hitting a limit
* Fix a comment typo
Co-authored-by: <span data-trailer="Co-authored-by:"><a href="mailto:60601340+lexnv@users.noreply.github.com" title="60601340+lexnv@users.noreply.github.com"><img alt="default avatar" src="https://secure.gravatar.com/avatar/5f5913d33390f407be235efde5595e66?s=32&d=identicon" class="avatar s16 avatar-inline"></a><a href="mailto:60601340+lexnv@users.noreply.github.com" title="60601340+lexnv@users.noreply.github.com">Alexandru Vasile</a> <<a href="mailto:60601340+lexnv@users.noreply.github.com" title="60601340+lexnv@users.noreply.github.com">60601340+lexnv@users.noreply.github.com</a>></span>
* Update core/src/server/rpc_module.rs
* Update core/src/server/rpc_module.rs
Co-authored-by: <span data-trailer="Co-authored-by:"><a href="mailto:james@jsdw.me" title="james@jsdw.me"><img alt="default avatar" src="https://secure.gravatar.com/avatar/c2a9583423180b820a133ea1af77289f?s=32&d=identicon" class="avatar s16 avatar-inline"></a><a href="mailto:james@jsdw.me" title="james@jsdw.me">James Wilson</a> <<a href="mailto:james@jsdw.me" title="james@jsdw.me">james@jsdw.me</a>></span>
Co-authored-by: <span data-trailer="Co-authored-by:"><a href="mailto:60601340+lexnv@users.noreply.github.com" title="60601340+lexnv@users.noreply.github.com"><img alt="default avatar" src="https://secure.gravatar.com/avatar/5f5913d33390f407be235efde5595e66?s=32&d=identicon" class="avatar s16 avatar-inline"></a><a href="mailto:60601340+lexnv@users.noreply.github.com" title="60601340+lexnv@users.noreply.github.com">Alexandru Vasile</a> <<a href="mailto:60601340+lexnv@users.noreply.github.com" title="60601340+lexnv@users.noreply.github.com">60601340+lexnv@users.noreply.github.com</a>></span>
https://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/34c2fbef59ca0bdae3b1c5fef0c355ed518ef8cd
feat(http server): add new builder APIs `build_from_tcp` and `build_from_hype...
2022-04-01T22:34:52+02:00
Niklas Adolfsson
niklasadolfsson1@gmail.com
* unify servers; use tokio::TcpListener
* add API to build server from tcp socket
* build_from_tcp nit: not async
* fix nits
* change `build_from_tcp` force users configure hyper
The hyper settings might contradict to settings on the provided
socket, force users of this API to configure that avoid confusion and
unexpected settings.
* Update http-server/src/server.rs
* fix doc links
* add separate APIs `build_from_tcp` and `build_from_hyper`
* fix clippy
* remove dead code
* fix build
* fix nit in example code
https://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/054c0e393c02ec815da4d16addd0271654c9db3b
http server: fix regression set backlog to 1024 (#718)
2022-03-28T20:48:14+02:00
Niklas Adolfsson
niklasadolfsson1@gmail.com
https://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/78055feb19dc95f53f6145aba606a253efe9f82a
fix: max_request_body_size setting should not override max_response_size (#711)
2022-03-22T10:21:28+01:00
Quake Wang
quake.wang@gmail.com
* fix: max_request_body_size setting should not override max_response_size
* chore: apply review comment
https://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/9bd212748be033d8461a88988adfc279b1e4fd79
feat(rpc module): `stream API` for SubscriptionSink (#639)
2022-01-21T13:10:00+00:00
Niklas Adolfsson
niklasadolfsson1@gmail.com
* feat(rpc module): add_stream to subscription sink
* fix some nits
* unify parameters to rpc methods
* Update core/src/server/rpc_module.rs
* Update tests/tests/integration_tests.rs
Co-authored-by: <span data-trailer="Co-authored-by:"><a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com"><img alt="default avatar" src="https://secure.gravatar.com/avatar/6bed507c0085d39447171b95c515a890?s=32&d=identicon" class="avatar s16 avatar-inline"></a><a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com">David</a> <<a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com">dvdplm@gmail.com</a>></span>
* address grumbles
* fix subscription tests
* new type for `SubscriptionCallback` and glue code
* remove unsed code
* remove todo
* add missing feature tokio/macros
* make `add_stream` cancel-safe
* rename add_stream and return status
* fix nits
* rename stream API -> streamify
* Update core/src/server/rpc_module.rs
* provide proper close reason
* spelling
* consume_and_streamify + docs
* fmt
* rename API pipe_from_stream
* improve logging; indicate which subscription method that failed
Co-authored-by: <span data-trailer="Co-authored-by:"><a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com"><img alt="default avatar" src="https://secure.gravatar.com/avatar/6bed507c0085d39447171b95c515a890?s=32&d=identicon" class="avatar s16 avatar-inline"></a><a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com">David</a> <<a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com">dvdplm@gmail.com</a>></span>
https://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/6f99a03867154332e34262be289a54ad02055fc8
fix(http server): handle post and option HTTP requests properly. (#637)
2022-01-05T16:01:49+01:00
Niklas Adolfsson
niklasadolfsson1@gmail.com
* fix(http server): handle post and option requests.
* Update http-server/src/response.rs
* fmt
* grumbles: validate CORS before checking method kind
* revert unintentional change
* Add A few tests around CORS and http method/header acceptance
* Tweak the CORS test
* return appropriate headers for CORS preflight response
* cargo fmt
* jsonrpc, not jsonrpsee in test requests
* don't test OPTIONS method in unsupported_methods test as it has different expectations
* Update tests/tests/integration_tests.rs
* Update tests/tests/integration_tests.rs
* Update tests/tests/integration_tests.rs
* Update tests/tests/integration_tests.rs
* Add an example to test CORS in browser, and a couple of fixes to CORS handling
* cargo fmt
* Update examples/cors_server.rs
Co-authored-by: <span data-trailer="Co-authored-by:"><a href="mailto:james@jsdw.me" title="james@jsdw.me"><img alt="default avatar" src="https://secure.gravatar.com/avatar/c2a9583423180b820a133ea1af77289f?s=32&d=identicon" class="avatar s16 avatar-inline"></a><a href="mailto:james@jsdw.me" title="james@jsdw.me">James Wilson</a> <<a href="mailto:james@jsdw.me" title="james@jsdw.me">james@jsdw.me</a>></span>
https://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/bc688cc25b739a8216e4ba6723df0506991ad830
feat: server configurable subscriptionID (#604)
2021-12-21T13:19:57+00:00
Niklas Adolfsson
niklasadolfsson1@gmail.com
* PoC
* introduce IdProvider trait
* revert Cow stuff
* Update ws-server/src/server.rs
* fix tests
* cargo fmt
* use 'static lifetime in SubscriptionId
* fix tests
* fmt
* make tests compile again
* fix tests
* Fix tests
* Move IdProvider impls to own module
* move `sub-id gen` types to `core`
* fix doc links
* make rand non-optional dep
* feature gate: id provider
Co-authored-by: <span data-trailer="Co-authored-by:"><a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com"><img alt="default avatar" src="https://secure.gravatar.com/avatar/6bed507c0085d39447171b95c515a890?s=32&d=identicon" class="avatar s16 avatar-inline"></a><a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com">David Palm</a> <<a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com">dvdplm@gmail.com</a>></span>
https://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/292bd88a998bb2b30a078751554ef222ce90dfbf
extract async client abstraction. (#580)
2021-12-20T17:08:00+00:00
Niklas Adolfsson
niklasadolfsson1@gmail.com
* extract ws client to async client
* bring back jsonrpsee-ws-client crate
* new crate core client
* add missing file
* jsonrpsee crate: add core client
* rexport core client
* more re-exports
* downgrade trait bounds
* update version
* fix nits
* send close reason
* Update types/src/traits.rs
* move 'TEN_MB_CONST' to core
* Update client/core-client/Cargo.toml
Co-authored-by: <span data-trailer="Co-authored-by:"><a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com"><img alt="default avatar" src="https://secure.gravatar.com/avatar/6bed507c0085d39447171b95c515a890?s=32&d=identicon" class="avatar s16 avatar-inline"></a><a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com">David</a> <<a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com">dvdplm@gmail.com</a>></span>
* Update client/core-client/src/lib.rs
Co-authored-by: <span data-trailer="Co-authored-by:"><a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com"><img alt="default avatar" src="https://secure.gravatar.com/avatar/6bed507c0085d39447171b95c515a890?s=32&d=identicon" class="avatar s16 avatar-inline"></a><a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com">David</a> <<a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com">dvdplm@gmail.com</a>></span>
* cargo fmt
* Update client/ws-client/src/lib.rs
Co-authored-by: <span data-trailer="Co-authored-by:"><a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com"><img alt="default avatar" src="https://secure.gravatar.com/avatar/6bed507c0085d39447171b95c515a890?s=32&d=identicon" class="avatar s16 avatar-inline"></a><a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com">David</a> <<a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com">dvdplm@gmail.com</a>></span>
* Update client/ws-client/src/lib.rs
Co-authored-by: <span data-trailer="Co-authored-by:"><a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com"><img alt="default avatar" src="https://secure.gravatar.com/avatar/6bed507c0085d39447171b95c515a890?s=32&d=identicon" class="avatar s16 avatar-inline"></a><a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com">David</a> <<a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com">dvdplm@gmail.com</a>></span>
* move `async-client` core
The `async-client` is hidden behind a new feature flag `async-client`
because it brings in additional dependecies such as tokio rt.
* fix docs
* add example how to use "core client"
* fix build
* Update http-server/Cargo.toml
* Update client/transport/Cargo.toml
Co-authored-by: <span data-trailer="Co-authored-by:"><a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com"><img alt="default avatar" src="https://secure.gravatar.com/avatar/6bed507c0085d39447171b95c515a890?s=32&d=identicon" class="avatar s16 avatar-inline"></a><a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com">David</a> <<a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com">dvdplm@gmail.com</a>></span>
https://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/e159c449551ebcfc99f05510fbac0c74e4443322
Crate restructuring (#590)
2021-12-17T15:57:32+01:00
Maciej Hirsz
1096222+maciejhirsz@users.noreply.github.com
* 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: <span data-trailer="Co-authored-by:"><a href="mailto:niklasadolfsson1@gmail.com" title="niklasadolfsson1@gmail.com"><img alt="default avatar" src="https://secure.gravatar.com/avatar/f4c2634184172564be1cba31914b37b1?s=32&d=identicon" class="avatar s16 avatar-inline"></a><a href="mailto:niklasadolfsson1@gmail.com" title="niklasadolfsson1@gmail.com">Niklas Adolfsson</a> <<a href="mailto:niklasadolfsson1@gmail.com" title="niklasadolfsson1@gmail.com">niklasadolfsson1@gmail.com</a>></span>
* fmt
* Feature gate the Client trait
* Move `Client` traits to `client` module
Co-authored-by: <span data-trailer="Co-authored-by:"><a href="mailto:niklasadolfsson1@gmail.com" title="niklasadolfsson1@gmail.com"><img alt="default avatar" src="https://secure.gravatar.com/avatar/f4c2634184172564be1cba31914b37b1?s=32&d=identicon" class="avatar s16 avatar-inline"></a><a href="mailto:niklasadolfsson1@gmail.com" title="niklasadolfsson1@gmail.com">Niklas Adolfsson</a> <<a href="mailto:niklasadolfsson1@gmail.com" title="niklasadolfsson1@gmail.com">niklasadolfsson1@gmail.com</a>></span>
https://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/1657e26b7461d5fe52d98615ce5064f18c829859
Middleware for metrics (#576)
2021-12-01T09:17:58+00:00
Maciej Hirsz
1096222+maciejhirsz@users.noreply.github.com
* Squashed MethodSink
* Middleware WIP
* Passing all the information through
* Unnecessary `false`
* Apply suggestions from code review
Co-authored-by: <span data-trailer="Co-authored-by:"><a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com"><img alt="default avatar" src="https://secure.gravatar.com/avatar/6bed507c0085d39447171b95c515a890?s=32&d=identicon" class="avatar s16 avatar-inline"></a><a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com">David</a> <<a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com">dvdplm@gmail.com</a>></span>
* 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: <span data-trailer="Co-authored-by:"><a href="mailto:1096222+maciejhirsz@users.noreply.github.com" title="1096222+maciejhirsz@users.noreply.github.com"><img alt="default avatar" src="https://secure.gravatar.com/avatar/e6d3d799a6d38d63090033557bcc0455?s=32&d=identicon" class="avatar s16 avatar-inline"></a><a href="mailto:1096222+maciejhirsz@users.noreply.github.com" title="1096222+maciejhirsz@users.noreply.github.com">Maciej Hirsz</a> <<a href="mailto:1096222+maciejhirsz@users.noreply.github.com" title="1096222+maciejhirsz@users.noreply.github.com">1096222+maciejhirsz@users.noreply.github.com</a>></span>
* Update ws-server/src/server.rs
Co-authored-by: <span data-trailer="Co-authored-by:"><a href="mailto:1096222+maciejhirsz@users.noreply.github.com" title="1096222+maciejhirsz@users.noreply.github.com"><img alt="default avatar" src="https://secure.gravatar.com/avatar/e6d3d799a6d38d63090033557bcc0455?s=32&d=identicon" class="avatar s16 avatar-inline"></a><a href="mailto:1096222+maciejhirsz@users.noreply.github.com" title="1096222+maciejhirsz@users.noreply.github.com">Maciej Hirsz</a> <<a href="mailto:1096222+maciejhirsz@users.noreply.github.com" title="1096222+maciejhirsz@users.noreply.github.com">1096222+maciejhirsz@users.noreply.github.com</a>></span>
* Update ws-server/src/server.rs
Co-authored-by: <span data-trailer="Co-authored-by:"><a href="mailto:1096222+maciejhirsz@users.noreply.github.com" title="1096222+maciejhirsz@users.noreply.github.com"><img alt="default avatar" src="https://secure.gravatar.com/avatar/e6d3d799a6d38d63090033557bcc0455?s=32&d=identicon" class="avatar s16 avatar-inline"></a><a href="mailto:1096222+maciejhirsz@users.noreply.github.com" title="1096222+maciejhirsz@users.noreply.github.com">Maciej Hirsz</a> <<a href="mailto:1096222+maciejhirsz@users.noreply.github.com" title="1096222+maciejhirsz@users.noreply.github.com">1096222+maciejhirsz@users.noreply.github.com</a>></span>
Co-authored-by: <span data-trailer="Co-authored-by:"><a href="mailto:1096222+maciejhirsz@users.noreply.github.com" title="1096222+maciejhirsz@users.noreply.github.com"><img alt="default avatar" src="https://secure.gravatar.com/avatar/e6d3d799a6d38d63090033557bcc0455?s=32&d=identicon" class="avatar s16 avatar-inline"></a><a href="mailto:1096222+maciejhirsz@users.noreply.github.com" title="1096222+maciejhirsz@users.noreply.github.com">Maciej Hirsz</a> <<a href="mailto:1096222+maciejhirsz@users.noreply.github.com" title="1096222+maciejhirsz@users.noreply.github.com">1096222+maciejhirsz@users.noreply.github.com</a>></span>
* 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: <span data-trailer="Co-authored-by:"><a href="mailto:1096222+maciejhirsz@users.noreply.github.com" title="1096222+maciejhirsz@users.noreply.github.com"><img alt="default avatar" src="https://secure.gravatar.com/avatar/e6d3d799a6d38d63090033557bcc0455?s=32&d=identicon" class="avatar s16 avatar-inline"></a><a href="mailto:1096222+maciejhirsz@users.noreply.github.com" title="1096222+maciejhirsz@users.noreply.github.com">Maciej Hirsz</a> <<a href="mailto:1096222+maciejhirsz@users.noreply.github.com" title="1096222+maciejhirsz@users.noreply.github.com">1096222+maciejhirsz@users.noreply.github.com</a>></span>
* Update examples/Cargo.toml
Co-authored-by: <span data-trailer="Co-authored-by:"><a href="mailto:1096222+maciejhirsz@users.noreply.github.com" title="1096222+maciejhirsz@users.noreply.github.com"><img alt="default avatar" src="https://secure.gravatar.com/avatar/e6d3d799a6d38d63090033557bcc0455?s=32&d=identicon" class="avatar s16 avatar-inline"></a><a href="mailto:1096222+maciejhirsz@users.noreply.github.com" title="1096222+maciejhirsz@users.noreply.github.com">Maciej Hirsz</a> <<a href="mailto:1096222+maciejhirsz@users.noreply.github.com" title="1096222+maciejhirsz@users.noreply.github.com">1096222+maciejhirsz@users.noreply.github.com</a>></span>
Co-authored-by: <span data-trailer="Co-authored-by:"><a href="mailto:1096222+maciejhirsz@users.noreply.github.com" title="1096222+maciejhirsz@users.noreply.github.com"><img alt="default avatar" src="https://secure.gravatar.com/avatar/e6d3d799a6d38d63090033557bcc0455?s=32&d=identicon" class="avatar s16 avatar-inline"></a><a href="mailto:1096222+maciejhirsz@users.noreply.github.com" title="1096222+maciejhirsz@users.noreply.github.com">Maciej Hirsz</a> <<a href="mailto:1096222+maciejhirsz@users.noreply.github.com" title="1096222+maciejhirsz@users.noreply.github.com">1096222+maciejhirsz@users.noreply.github.com</a>></span>
* 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: <span data-trailer="Co-authored-by:"><a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com"><img alt="default avatar" src="https://secure.gravatar.com/avatar/6bed507c0085d39447171b95c515a890?s=32&d=identicon" class="avatar s16 avatar-inline"></a><a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com">David</a> <<a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com">dvdplm@gmail.com</a>></span>
https://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/e2d4722c25bec808e24d53605e4b87a7323afac2
feat: make it possible to try several sockaddrs when starting server (#567)
2021-11-17T11:29:48+01:00
Niklas Adolfsson
niklasadolfsson1@gmail.com
* fix: enable several sockaddress when starting servers
* nits
* more verbose asserts in rustdoc tests
* fix tests
* fix tests again
https://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/682ecbe39edd7e9c94ff2506329727a91846be24
ws server: reject too big response (#553)
2021-11-11T15:41:07+01:00
Niklas Adolfsson
niklasadolfsson1@gmail.com
* ws server: don't kill connection max limit exceeds
* Update ws-server/src/server.rs
* actually use max size in soketto
* rewrite me
* improve logs
* use soketto fix
* rewrite me
* fix nit
* revert unintentional change
* use soketto 0.7.1
* fix logger
* Update ws-server/src/server.rs
Co-authored-by: <span data-trailer="Co-authored-by:"><a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com"><img alt="default avatar" src="https://secure.gravatar.com/avatar/6bed507c0085d39447171b95c515a890?s=32&d=identicon" class="avatar s16 avatar-inline"></a><a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com">David</a> <<a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com">dvdplm@gmail.com</a>></span>
* Update ws-server/src/server.rs
Co-authored-by: <span data-trailer="Co-authored-by:"><a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com"><img alt="default avatar" src="https://secure.gravatar.com/avatar/6bed507c0085d39447171b95c515a890?s=32&d=identicon" class="avatar s16 avatar-inline"></a><a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com">David</a> <<a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com">dvdplm@gmail.com</a>></span>
* Update ws-server/src/server.rs
Co-authored-by: <span data-trailer="Co-authored-by:"><a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com"><img alt="default avatar" src="https://secure.gravatar.com/avatar/6bed507c0085d39447171b95c515a890?s=32&d=identicon" class="avatar s16 avatar-inline"></a><a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com">David</a> <<a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com">dvdplm@gmail.com</a>></span>
* Update ws-server/src/server.rs
Co-authored-by: <span data-trailer="Co-authored-by:"><a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com"><img alt="default avatar" src="https://secure.gravatar.com/avatar/6bed507c0085d39447171b95c515a890?s=32&d=identicon" class="avatar s16 avatar-inline"></a><a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com">David</a> <<a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com">dvdplm@gmail.com</a>></span>
* Update ws-server/src/server.rs
Co-authored-by: <span data-trailer="Co-authored-by:"><a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com"><img alt="default avatar" src="https://secure.gravatar.com/avatar/6bed507c0085d39447171b95c515a890?s=32&d=identicon" class="avatar s16 avatar-inline"></a><a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com">David</a> <<a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com">dvdplm@gmail.com</a>></span>
* fix build
* reject too large response
* fix some DRY code
* feat: bounded serializer for RpcModule
* Update utils/src/server/helpers.rs
Co-authored-by: <span data-trailer="Co-authored-by:"><a href="mailto:1096222+maciejhirsz@users.noreply.github.com" title="1096222+maciejhirsz@users.noreply.github.com"><img alt="default avatar" src="https://secure.gravatar.com/avatar/e6d3d799a6d38d63090033557bcc0455?s=32&d=identicon" class="avatar s16 avatar-inline"></a><a href="mailto:1096222+maciejhirsz@users.noreply.github.com" title="1096222+maciejhirsz@users.noreply.github.com">Maciej Hirsz</a> <<a href="mailto:1096222+maciejhirsz@users.noreply.github.com" title="1096222+maciejhirsz@users.noreply.github.com">1096222+maciejhirsz@users.noreply.github.com</a>></span>
* Update utils/src/server/helpers.rs
Co-authored-by: <span data-trailer="Co-authored-by:"><a href="mailto:1096222+maciejhirsz@users.noreply.github.com" title="1096222+maciejhirsz@users.noreply.github.com"><img alt="default avatar" src="https://secure.gravatar.com/avatar/e6d3d799a6d38d63090033557bcc0455?s=32&d=identicon" class="avatar s16 avatar-inline"></a><a href="mailto:1096222+maciejhirsz@users.noreply.github.com" title="1096222+maciejhirsz@users.noreply.github.com">Maciej Hirsz</a> <<a href="mailto:1096222+maciejhirsz@users.noreply.github.com" title="1096222+maciejhirsz@users.noreply.github.com">1096222+maciejhirsz@users.noreply.github.com</a>></span>
* address grumbles: safety and other nits
* address grumbles: MaxCallSize on closures instead
* Update utils/src/server/helpers.rs
Co-authored-by: <span data-trailer="Co-authored-by:"><a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com"><img alt="default avatar" src="https://secure.gravatar.com/avatar/6bed507c0085d39447171b95c515a890?s=32&d=identicon" class="avatar s16 avatar-inline"></a><a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com">David</a> <<a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com">dvdplm@gmail.com</a>></span>
* use max response size on errors too
* Revert "use max response size on errors too"
This reverts commit 3b07e42d257b2eebae311b92b7f72594d94d5f87.
* include max limit in error response
Co-authored-by: <span data-trailer="Co-authored-by:"><a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com"><img alt="default avatar" src="https://secure.gravatar.com/avatar/6bed507c0085d39447171b95c515a890?s=32&d=identicon" class="avatar s16 avatar-inline"></a><a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com">David</a> <<a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com">dvdplm@gmail.com</a>></span>
Co-authored-by: <span data-trailer="Co-authored-by:"><a href="mailto:1096222+maciejhirsz@users.noreply.github.com" title="1096222+maciejhirsz@users.noreply.github.com"><img alt="default avatar" src="https://secure.gravatar.com/avatar/e6d3d799a6d38d63090033557bcc0455?s=32&d=identicon" class="avatar s16 avatar-inline"></a><a href="mailto:1096222+maciejhirsz@users.noreply.github.com" title="1096222+maciejhirsz@users.noreply.github.com">Maciej Hirsz</a> <<a href="mailto:1096222+maciejhirsz@users.noreply.github.com" title="1096222+maciejhirsz@users.noreply.github.com">1096222+maciejhirsz@users.noreply.github.com</a>></span>
https://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/afcf411d9bbf1fce95caacab8b5e66857880064b
Allow awaiting on server handles (#550)
2021-11-08T15:57:06+00:00
Chris Sosnin
48099298+slumber@users.noreply.github.com
* Implement Future for server handles
* Explicitly assert timeout errors in tests
https://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/37474f45760ffaeb1d1b2a766a4907c6f1a3a0c2
switch to the tracing crate (#525)
2021-10-15T13:13:34+00:00
Niklas Adolfsson
niklasadolfsson1@gmail.com
https://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/07df2f8e14f5b27fc66c8db3441936e66c822508
fix super nit in ServerBuilder (#512)
2021-10-12T18:33:04+02:00
Niklas Adolfsson
niklasadolfsson1@gmail.com
https://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/75045f49c3175be9a5dcf36c44ee86ccb4bae99d
Document resource limiting (#510)
2021-10-12T13:27:02+00:00
Maciej Hirsz
1096222+maciejhirsz@users.noreply.github.com
* Document resource limiting
* Formatting
* More formatting
* fmt
* Doc comment wording
Co-authored-by: <span data-trailer="Co-authored-by:"><a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com"><img alt="default avatar" src="https://secure.gravatar.com/avatar/6bed507c0085d39447171b95c515a890?s=32&d=identicon" class="avatar s16 avatar-inline"></a><a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com">David</a> <<a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com">dvdplm@gmail.com</a>></span>
* Cross-reference docs between servers and utils
* Fix grumbles
* More elaborate description
* Update http-server/Cargo.toml
Co-authored-by: <span data-trailer="Co-authored-by:"><a href="mailto:niklasadolfsson1@gmail.com" title="niklasadolfsson1@gmail.com"><img alt="default avatar" src="https://secure.gravatar.com/avatar/f4c2634184172564be1cba31914b37b1?s=32&d=identicon" class="avatar s16 avatar-inline"></a><a href="mailto:niklasadolfsson1@gmail.com" title="niklasadolfsson1@gmail.com">Niklas Adolfsson</a> <<a href="mailto:niklasadolfsson1@gmail.com" title="niklasadolfsson1@gmail.com">niklasadolfsson1@gmail.com</a>></span>
* Apply suggestions from code review
Co-authored-by: <span data-trailer="Co-authored-by:"><a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com"><img alt="default avatar" src="https://secure.gravatar.com/avatar/6bed507c0085d39447171b95c515a890?s=32&d=identicon" class="avatar s16 avatar-inline"></a><a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com">David</a> <<a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com">dvdplm@gmail.com</a>></span>
* Allow for unlimited resources if cap is 0
* fmt
* Update ws-server/Cargo.toml
Co-authored-by: <span data-trailer="Co-authored-by:"><a href="mailto:niklasadolfsson1@gmail.com" title="niklasadolfsson1@gmail.com"><img alt="default avatar" src="https://secure.gravatar.com/avatar/f4c2634184172564be1cba31914b37b1?s=32&d=identicon" class="avatar s16 avatar-inline"></a><a href="mailto:niklasadolfsson1@gmail.com" title="niklasadolfsson1@gmail.com">Niklas Adolfsson</a> <<a href="mailto:niklasadolfsson1@gmail.com" title="niklasadolfsson1@gmail.com">niklasadolfsson1@gmail.com</a>></span>
* Clarify 8 resources, 0s in costs/limits, and runtime errors
Co-authored-by: <span data-trailer="Co-authored-by:"><a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com"><img alt="default avatar" src="https://secure.gravatar.com/avatar/6bed507c0085d39447171b95c515a890?s=32&d=identicon" class="avatar s16 avatar-inline"></a><a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com">David</a> <<a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com">dvdplm@gmail.com</a>></span>
Co-authored-by: <span data-trailer="Co-authored-by:"><a href="mailto:niklasadolfsson1@gmail.com" title="niklasadolfsson1@gmail.com"><img alt="default avatar" src="https://secure.gravatar.com/avatar/f4c2634184172564be1cba31914b37b1?s=32&d=identicon" class="avatar s16 avatar-inline"></a><a href="mailto:niklasadolfsson1@gmail.com" title="niklasadolfsson1@gmail.com">Niklas Adolfsson</a> <<a href="mailto:niklasadolfsson1@gmail.com" title="niklasadolfsson1@gmail.com">niklasadolfsson1@gmail.com</a>></span>
https://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/6fb61dc189104db62309f516ae9cec55af73db62
[http server]: use tokio::spawn internally in `HttpServer::start` and return ...
2021-10-11T18:13:50+00:00
Niklas Adolfsson
niklasadolfsson1@gmail.com
* [ws server]: refactor start()
* remove needless clone
* fix http server too
* fmt
* unify stop APIs
* fix bad merge
* add API to use custom tokio runtime
* use futures oneshot
* fix unintentional change
* Revert "use futures oneshot"
This reverts commit 0432f6ba41d49a3494943458657a31f8afd79160.
* Update http-server/src/server.rs
Co-authored-by: <span data-trailer="Co-authored-by:"><a href="mailto:1096222+maciejhirsz@users.noreply.github.com" title="1096222+maciejhirsz@users.noreply.github.com"><img alt="default avatar" src="https://secure.gravatar.com/avatar/e6d3d799a6d38d63090033557bcc0455?s=32&d=identicon" class="avatar s16 avatar-inline"></a><a href="mailto:1096222+maciejhirsz@users.noreply.github.com" title="1096222+maciejhirsz@users.noreply.github.com">Maciej Hirsz</a> <<a href="mailto:1096222+maciejhirsz@users.noreply.github.com" title="1096222+maciejhirsz@users.noreply.github.com">1096222+maciejhirsz@users.noreply.github.com</a>></span>
Co-authored-by: <span data-trailer="Co-authored-by:"><a href="mailto:1096222+maciejhirsz@users.noreply.github.com" title="1096222+maciejhirsz@users.noreply.github.com"><img alt="default avatar" src="https://secure.gravatar.com/avatar/e6d3d799a6d38d63090033557bcc0455?s=32&d=identicon" class="avatar s16 avatar-inline"></a><a href="mailto:1096222+maciejhirsz@users.noreply.github.com" title="1096222+maciejhirsz@users.noreply.github.com">Maciej Hirsz</a> <<a href="mailto:1096222+maciejhirsz@users.noreply.github.com" title="1096222+maciejhirsz@users.noreply.github.com">1096222+maciejhirsz@users.noreply.github.com</a>></span>
https://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/518a6155101ca064d0d7e70c62cef70c853e8766
Resource Limiting (#500)
2021-10-11T10:01:18+00:00
Maciej Hirsz
1096222+maciejhirsz@users.noreply.github.com
* Squash post merge
* RAII claims and some comments
* Adding resources to Methods
* Use arrays for claiming all resources at once
* Register resources on ws-server
* Return MethodResourcesBuilder from register_method
* Return MethodResourcesBuilder from register_async_method
* fmt and comments
* Add `verify_and_insert` to get rid of `or_insert` in order to get mut ref to value
* Resources initialization
* No need for ResourceBuilder
* Comment all the things
* Handle errors on ws-server `start` method
* Passing ResourceGuard to method execution
* Start ws-server in background, simplify all the tests!
* Claiming resources on runtime
* Do checked math on resource claiming
* Clearer error path for resources at limit
* Resource limiting tests WIP
* Unbox async futures
* fmt
* Cleaner proc macro
* Fix lifetime issues with ResourceGuard with internal Arc
* Remove unnecessary lifetime generic
* Working tests
* Use turbofish in tests
* fmt
* Fixed (?) benches
* Apply suggestions from code review
Co-authored-by: <span data-trailer="Co-authored-by:"><a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com"><img alt="default avatar" src="https://secure.gravatar.com/avatar/6bed507c0085d39447171b95c515a890?s=32&d=identicon" class="avatar s16 avatar-inline"></a><a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com">David</a> <<a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com">dvdplm@gmail.com</a>></span>
* Tweak more grumbles
* Adding a test for resource limiting with proc macros (WIP)
* Reworking attribute macros for resource limiting (#507)
* Squashed macros WIP
* bae-less macros!
* Make things simpler and more readable
* Some comments and DRY aliases parsing
* Naming things is hard
* Respan is no longer needed
* Simpler Arguments
* Remove stale code
* Apply suggestions from code review
Co-authored-by: <span data-trailer="Co-authored-by:"><a href="mailto:niklasadolfsson1@gmail.com" title="niklasadolfsson1@gmail.com"><img alt="default avatar" src="https://secure.gravatar.com/avatar/f4c2634184172564be1cba31914b37b1?s=32&d=identicon" class="avatar s16 avatar-inline"></a><a href="mailto:niklasadolfsson1@gmail.com" title="niklasadolfsson1@gmail.com">Niklas Adolfsson</a> <<a href="mailto:niklasadolfsson1@gmail.com" title="niklasadolfsson1@gmail.com">niklasadolfsson1@gmail.com</a>></span>
* syn-up all the things, handle resources on methods
Co-authored-by: <span data-trailer="Co-authored-by:"><a href="mailto:niklasadolfsson1@gmail.com" title="niklasadolfsson1@gmail.com"><img alt="default avatar" src="https://secure.gravatar.com/avatar/f4c2634184172564be1cba31914b37b1?s=32&d=identicon" class="avatar s16 avatar-inline"></a><a href="mailto:niklasadolfsson1@gmail.com" title="niklasadolfsson1@gmail.com">Niklas Adolfsson</a> <<a href="mailto:niklasadolfsson1@gmail.com" title="niklasadolfsson1@gmail.com">niklasadolfsson1@gmail.com</a>></span>
* Resource limiting on the http server
* Test two resources at once
* Test the HTTP server for resource limiting
* Apply suggestions from code review
Co-authored-by: <span data-trailer="Co-authored-by:"><a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com"><img alt="default avatar" src="https://secure.gravatar.com/avatar/6bed507c0085d39447171b95c515a890?s=32&d=identicon" class="avatar s16 avatar-inline"></a><a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com">David</a> <<a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com">dvdplm@gmail.com</a>></span>
Co-authored-by: <span data-trailer="Co-authored-by:"><a href="mailto:niklasadolfsson1@gmail.com" title="niklasadolfsson1@gmail.com"><img alt="default avatar" src="https://secure.gravatar.com/avatar/f4c2634184172564be1cba31914b37b1?s=32&d=identicon" class="avatar s16 avatar-inline"></a><a href="mailto:niklasadolfsson1@gmail.com" title="niklasadolfsson1@gmail.com">Niklas Adolfsson</a> <<a href="mailto:niklasadolfsson1@gmail.com" title="niklasadolfsson1@gmail.com">niklasadolfsson1@gmail.com</a>></span>
* Comment tweaks
* More explicit error type for `AttributeMeta::retain`
* Remove generic from ResourceTable; derive Default on ws Builder
* Make the macros shorter
Co-authored-by: <span data-trailer="Co-authored-by:"><a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com"><img alt="default avatar" src="https://secure.gravatar.com/avatar/6bed507c0085d39447171b95c515a890?s=32&d=identicon" class="avatar s16 avatar-inline"></a><a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com">David</a> <<a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com">dvdplm@gmail.com</a>></span>
Co-authored-by: <span data-trailer="Co-authored-by:"><a href="mailto:niklasadolfsson1@gmail.com" title="niklasadolfsson1@gmail.com"><img alt="default avatar" src="https://secure.gravatar.com/avatar/f4c2634184172564be1cba31914b37b1?s=32&d=identicon" class="avatar s16 avatar-inline"></a><a href="mailto:niklasadolfsson1@gmail.com" title="niklasadolfsson1@gmail.com">Niklas Adolfsson</a> <<a href="mailto:niklasadolfsson1@gmail.com" title="niklasadolfsson1@gmail.com">niklasadolfsson1@gmail.com</a>></span>
https://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/b9be017703319cb83448238cfe43a5862679298a
Re-export `v2` submodules (#469)
2021-09-16T06:15:36+00:00
David
dvdplm@gmail.com
* Re-export v2::params, error, request and response types
* Use shallow type paths
https://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/635142e36b5acb65b9e38b44831726d964a4f20e
Rename and reorg types (#462)
2021-09-15T14:13:47+00:00
David
dvdplm@gmail.com
* Renames
* More renames
* fmt
* s/RpcParams/Params/
* Add a type alias `SubscriptionResponse` to `Notification` which is parametrized to `SubscriptionPayload`
Move `SubscriptionResponse` to the `response` module
* Fix doc links
* Cleanup and some docs
* Review feedback
* cleanup
https://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/c13f97ba8bb5a5862dd0372053f5d9aa56531c3b
Fix build warnings (#465)
2021-09-14T15:16:10+00:00
David
dvdplm@gmail.com
* Silence warning on cors_max_age
* Revert change to `AccessControl`
https://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/d188da709fd16dd238b6dbd52d81a66dcbc25f45
Add license headers where missing and update year (#439)
2021-08-25T12:35:38+00:00
David
dvdplm@gmail.com
* Add license headers where missing and update year
* Update examples/http.rs
Co-authored-by: <span data-trailer="Co-authored-by:"><a href="mailto:niklasadolfsson1@gmail.com" title="niklasadolfsson1@gmail.com"><img alt="default avatar" src="https://secure.gravatar.com/avatar/f4c2634184172564be1cba31914b37b1?s=32&d=identicon" class="avatar s16 avatar-inline"></a><a href="mailto:niklasadolfsson1@gmail.com" title="niklasadolfsson1@gmail.com">Niklas Adolfsson</a> <<a href="mailto:niklasadolfsson1@gmail.com" title="niklasadolfsson1@gmail.com">niklasadolfsson1@gmail.com</a>></span>
Co-authored-by: <span data-trailer="Co-authored-by:"><a href="mailto:niklasadolfsson1@gmail.com" title="niklasadolfsson1@gmail.com"><img alt="default avatar" src="https://secure.gravatar.com/avatar/f4c2634184172564be1cba31914b37b1?s=32&d=identicon" class="avatar s16 avatar-inline"></a><a href="mailto:niklasadolfsson1@gmail.com" title="niklasadolfsson1@gmail.com">Niklas Adolfsson</a> <<a href="mailto:niklasadolfsson1@gmail.com" title="niklasadolfsson1@gmail.com">niklasadolfsson1@gmail.com</a>></span>
https://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/c69e0dd871cf25104f827da5da1f1832641419af
Concurrent polling on async methods (#424)
2021-08-17T18:07:15+02:00
Maciej Hirsz
1096222+maciejhirsz@users.noreply.github.com
* Experimental generic driver for methods
* Move FutureDriver to its own module
* "Infallible" sync methods + fmt
* Drive all methods to completion before background_task closes
https://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/326d0c91be76e1a485d6091ec1ddef2df67d6f98
Don't allocate until we know it's worth it (#420)
2021-08-16T10:59:54+02:00
David
dvdplm@gmail.com
* Sniff the first byte to glean if the incoming request is a single or batch request
This works around the serde limitations around `untagged` enums and `RawValue`.
* fmt
* For http server, check first byte before allocating space for the body
Also, rework the way we return errors: prefer JSON-RPC errors according to spec (application/json) wherever sensible.
* Review feedback
* Don't assume there is a first byte to read
* ty clipyp
* Review concerns
* Cleanup
https://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/32811d3ce2dc0095e5452524a8492fcc96d5cc43
[clients]: remove tokio 0.2 runtime support (#432)
2021-08-13T14:30:34+00:00
Niklas Adolfsson
niklasadolfsson1@gmail.com
Co-authored-by: <span data-trailer="Co-authored-by:"><a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com"><img alt="default avatar" src="https://secure.gravatar.com/avatar/6bed507c0085d39447171b95c515a890?s=32&d=identicon" class="avatar s16 avatar-inline"></a><a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com">David Palm</a> <<a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com">dvdplm@gmail.com</a>></span>
https://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/fba533f86209261581d293b161738c009efbd838
Sniff the first byte to glean if the incoming request is a single or batch re...
2021-08-13T07:52:33+00:00
David
dvdplm@gmail.com
* Sniff the first byte to glean if the incoming request is a single or batch request
This works around the serde limitations around `untagged` enums and `RawValue`.
* fmt
* Review feedback
* Don't assume there is a first byte to read
* remove todo
* review feedback
https://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/052a3844c4fc2d147bf0859c74ce9ed03733699e
fix most clippy warnings (#434)
2021-08-13T09:19:14+02:00
Niklas Adolfsson
niklasadolfsson1@gmail.com
https://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/8db65b4265d389b521499f736d89d47ba4ae005c
Module API refactor (#412)
2021-07-12T18:58:12+00:00
Maciej Hirsz
1096222+maciejhirsz@users.noreply.github.com
* Do not register methods on servers
* fmt
* Infallible `to_rpc` proc macro
* Remove dead code
* Check for duplicate names at compile time
* Add a UI test for name conflicts
* Apply suggestions from code review
Co-authored-by: <span data-trailer="Co-authored-by:"><a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com"><img alt="default avatar" src="https://secure.gravatar.com/avatar/6bed507c0085d39447171b95c515a890?s=32&d=identicon" class="avatar s16 avatar-inline"></a><a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com">David</a> <<a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com">dvdplm@gmail.com</a>></span>
Co-authored-by: <span data-trailer="Co-authored-by:"><a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com"><img alt="default avatar" src="https://secure.gravatar.com/avatar/6bed507c0085d39447171b95c515a890?s=32&d=identicon" class="avatar s16 avatar-inline"></a><a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com">David Palm</a> <<a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com">dvdplm@gmail.com</a>></span>
https://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/0592442e1ff9607053cd86f4b399acf20c541ca3
Rexport types for servers (#409)
2021-07-12T08:43:42+00:00
David
dvdplm@gmail.com
* Include "macros" in the "server" feature
* Re-export SubscriptionSink
* Include the "types" feature in both the "client" and "server" features
Export types::* from façade when the "types" is active
Export types::* from servers
* fmt
* Export jsonrpsee_types under types
* fmt
* broken doc link
* fix benches
* fmt
* Fix test imports