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