get

Function get 

Source
pub fn get(
    url: &str,
    headers: Option<HashMap<&str, &str>>,
) -> Result<String, Box<dyn Error>>
Expand description

GET Request

§Example

use light_tool::http;
assert_eq!(http::get("http://example.com", None).is_ok(), true)