use infinispan_fork::request::ToHttpRequest; use infinispan_fork::Infinispan; use reqwest::Response; pub fn infinispan_client() -> Infinispan { Infinispan::new("http://localhost:11222", "username", "password") } pub async fn run(request: &R) -> Response { infinispan_client().run(request).await.unwrap() } pub async fn read_body(response: Response) -> String { response.text_with_charset("utf-8").await.unwrap() }