Function get
Source pub fn get(url: &str) -> Result<Response>
Expand description
Perform a one-shot synchronous GET request.
Creates an ephemeral Client internally. For multiple requests, prefer
creating a Client and reusing it.
ยงExample
let resp = winhttp::get("https://httpbin.org/get")?;
assert!(resp.is_success());
println!("{}", resp.text());