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>,
) -> HttpResponsewhere
B: Body<Data = Bytes> + Send + 'static,
B::Data: Send,
B::Error: Into<BoxError>,
L: Layer<RpcService>,
<L as Layer<RpcService>>::Service: RpcServiceT<MethodResponse = MethodResponse, BatchResponse = MethodResponse, NotificationResponse = MethodResponse> + Send,
Expand description
Make JSON-RPC HTTP call with a RpcServiceBuilder
Fails if the HTTP request was a malformed JSON-RPC request.