make_hyper_great_again 0.11.1

Wrap async hyper back to the good ol' days.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
extern crate make_hyper_great_again as mhga;
extern crate hyper_rustls;

use mhga::Client;
use std::io::Read;

fn main() {
  let client = Client::create_connector(|c| hyper_rustls::HttpsConnector::new(4, &c.handle())).unwrap();

  let mut response = client.get("https://example.com").send().unwrap();
  let mut content = String::new();
  response.read_to_string(&mut content).unwrap();

  println!("{}", content);
}