podman_client/system/ping.rs
1use std::collections::HashMap;
2
3use http_body_util::Empty;
4use hyper::body::Bytes;
5
6use crate::{client::Client, models::lib::Error};
7
8impl Client {
9 pub async fn ping(&self) -> Result<HashMap<String, String>, Error> {
10 let (headers, _) = self
11 .send_request::<_, ()>("HEAD", "/libpod/_ping", Empty::<Bytes>::new())
12 .await?;
13
14 Ok(headers)
15 }
16}