post

Function post 

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

POST Request

§Example

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