use std::sync::RwLock;
use crate::rubase::{rutils, BaseEntity};
pub struct WebClient {
pub base_path: String,
pub client: RwLock<reqwest::Client>,
}
impl BaseEntity for WebClient {}
impl WebClient {
pub fn new() -> Self {
Self {
client: RwLock::new(reqwest::Client::new()),
base_path: rutils::get_config_path(),
}
}
pub fn init(&mut self) {
}
}