tinyget 1.1.2

Tiny HTTP(S) GET
Documentation
1
2
3
4
5
6
7
8
fn main() -> Result<(), tinyget::Error> {
    let response = tinyget::get("http://httpbin.org/anything")
        .with_timeout(10)
        .send()?;
    let hello = response.as_str()?;
    println!("{}", hello);
    Ok(())
}