mangadex 0.1.2

Unofficial asynchronous mangadex API wrapper for rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! Server status

use crate::{Client, Result};

/// Ping the server
///
/// Call to `GET /ping`
pub struct Ping;

impl Ping {
    pub async fn send(&self, client: &Client) -> Result<()> {
        // `GET /ping` does not return JSON, because
        // it's a special snow-flake. So we get this...
        client.ping().await
    }
}