viz
viz copied to clipboard
RPC
is it possible to make interface like here? https://github.com/kardeiz/jsonrpc-v2 also need support of middlewares for rpc what do you think about it?
Should integrate well with jsonrpc-v2. But needs to be adapted to hyper v1.
this lib https://github.com/kardeiz/jsonrpc-v2 not allowing to add and use middlewares e.g. for jwt auth.
jsonrpc
supports to convert it into hyper service.
So it is possible to use middleware from other frameworks.
https://github.com/kardeiz/jsonrpc-v2/blob/16ec062ec3e9f83f95458bbb5e5bc6a599adbf75/examples/hyper.rs#L38
sorry for such questions but i really dont know how to use them
when we asked creator of lib to add support of middlewares. He added PR, but didn't merge it
https://github.com/kardeiz/jsonrpc-v2/pull/23
In jsonrpc, there are some examples about actix. You can follow actix's middleware guide.
ok thank you