(
server_url: &str,
method: &str,
path: &str,
body: Option<&Value>,
)
| 1 | fn http_request_json( |
| 2 | server_url: &str, |
| 3 | method: &str, |
| 4 | path: &str, |
| 5 | body: Option<&Value>, |
| 6 | ) -> anyhow::Result<Value> { |
| 7 | let body = http_request(server_url, method, path, body)?; |
| 8 | serde_json::from_slice(&body).context("parse SimDeck service JSON response") |
| 9 | } |
| 10 | |
| 11 | fn http_request( |
| 12 | server_url: &str, |
no test coverage detected