improvements

This commit is contained in:
Sean McArthur
2016-10-16 09:40:28 -07:00
parent 9bfdcec052
commit d78eff6918
6 changed files with 104 additions and 22 deletions

View File

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