This commit is contained in:
Sean McArthur
2016-06-30 17:23:51 -07:00
commit 9bfdcec052
9 changed files with 601 additions and 0 deletions

14
src/lib.rs Normal file
View File

@@ -0,0 +1,14 @@
extern crate hyper;
#[macro_use] extern crate log;
pub use hyper::{Method, StatusCode, header, Url};
pub use self::client::{Client, Response};
mod client;
mod sync;
pub fn get(url: &str) -> Result<Response, String> {
let client = Client::new();
client.get(url).send()
}