pub async fn call_with_service<S, B>(
request: HttpRequest<B>,
batch_config: BatchRequestConfig,
max_request_size: u32,
rpc_service: S,
) -> HttpResponsewhere
B: Body<Data = Bytes> + Send + 'static,
B::Data: Send,
B::Error: Into<BoxError>,
S: RpcServiceT<MethodResponse = MethodResponse, BatchResponse = MethodResponse, NotificationResponse = MethodResponse> + Send,
Expand description
Make JSON-RPC HTTP call with a service RpcServiceT
Fails if the HTTP request was a malformed JSON-RPC request.