bitreq 0.3.5

Simple, minimal-dependency HTTP client
Documentation
1
2
3
4
5
6
7
8
9
10
//! This is a simple example to demonstrate the usage of this library.

#![cfg(feature = "std")]

fn main() -> Result<(), bitreq::Error> {
    let response = bitreq::get("http://example.com").send()?;
    let html = response.as_str()?;
    println!("{}", html);
    Ok(())
}