dmisys 0.1.0

This is a specialized library designed to output the hardware configuration required by the system, as well as various status information of the current device.
Documentation
use std::error::Error;
use isahc::prelude::*;

/// Get response Data from HTTP WebServer
pub fn cn_server_get(server_url: &str) -> Result<Option<String>, Box<dyn Error>> {
    match isahc::get(server_url) {
        Ok(mut response) => {
            if response.status().is_success() {
                let get_data = response.text()?;
                Ok(Some(get_data))
            } else {
                Ok(None)
            }
        }
        Err(_e) => {
            Ok(None) 
        }
    }
}