pub fn request(method: Method, url: &str) -> Result<Response, Error>Expand description
Sends a request with the given method and URL using default builder settings.
§Errors
Returns an error if the URL is invalid, the status code is unrecognized, or libcurl reports a failure.
§Examples
let resp = curl_rest::request(curl_rest::Method::Get, "https://example.com")?;
println!("Status: {}", resp.status);