jsonrpsee_server::http

Function call_with_service_builder

source
pub async fn call_with_service_builder<L, B>(
    request: HttpRequest<B>,
    server_cfg: ServerConfig,
    conn: ConnectionState,
    methods: impl Into<Methods>,
    rpc_service: RpcServiceBuilder<L>,
) -> HttpResponse
where B: Body<Data = Bytes> + Send + 'static, B::Data: Send, B::Error: Into<BoxError>, L: for<'a> Layer<RpcService>, for<'a> <L as Layer<RpcService>>::Service: Send + Sync + 'static + RpcServiceT<'a>,
Expand description

Make JSON-RPC HTTP call with a RpcServiceBuilder

Fails if the HTTP request was a malformed JSON-RPC request.