2 releases
Uses old Rust 2015
0.11.1 | Jun 20, 2017 |
---|---|
0.11.0 | Jun 16, 2017 |
#19 in #days
9KB
157 lines
make_hyper_great_again
Wrap async hyper back to the good ol' days.
extern crate make_hyper_great_again as mhga;
use mhga::Client;
use std::io::Read;
fn main() {
let client = Client::new().unwrap(); // only new thing is that this returns a Result
let mut response = client.get("http://example.com").send().unwrap();
let mut content = String::new();
response.read_to_string(&mut content).unwrap();
println!("{}", content);
}
See /examples/
for more examples.
Dependencies
~8.5MB
~146K SLoC