improvements
This commit is contained in:
11
src/lib.rs
11
src/lib.rs
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user