neto 0.0.4

Enhanced HTTP client API wrapper for reqwest with improved ergonomics
Documentation
use reqwest::Response;

use crate::components::data::{Body, Http, Query};

impl Http {
    pub async fn post<Path: Into<String>>(
        &self,
        path: Path,
        query: Query,
        body: Body,
    ) -> Result<Response, Box<dyn std::error::Error>> {
        let client = &self.client;
        let url = self.url(path);
        let req = client.post(url).query(&query);
        let req = self.body(req, body);

        let resp = req.send().await?;
        Ok(resp)
    }
}