Fetching https

This commit is contained in:
Tomasz Drwięga
2016-08-26 16:35:59 +02:00
parent 1c19a807d9
commit 25fc919913
8 changed files with 5145 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
extern crate https_fetch;
use std::io;
use https_fetch::*;
fn main() {
let client = Client::new().unwrap();
let rx = client.fetch(Url::new("github.com", 443, "/").unwrap(), Box::new(io::stdout())).unwrap();
let result = rx.recv().unwrap();
assert!(result.is_ok());
}