jsonrpsee_server::http

Function call_with_service

source
pub async fn call_with_service<S, B>(
    request: HttpRequest<B>,
    batch_config: BatchRequestConfig,
    max_request_size: u32,
    rpc_service: S,
    max_response_size: u32,
) -> HttpResponse
where B: Body<Data = Bytes> + Send + 'static, B::Data: Send, B::Error: Into<BoxError>, for<'a> S: RpcServiceT<'a> + Send,
Expand description

Make JSON-RPC HTTP call with a service RpcServiceT

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