Merge pull request #294 from xymostech/patch-2
fix(readme): Make the README client example work
This commit is contained in:
		| @@ -46,16 +46,16 @@ fn main() { | |||||||
|     let mut client = Client::new(); |     let mut client = Client::new(); | ||||||
|  |  | ||||||
|     // Creating an outgoing request. |     // Creating an outgoing request. | ||||||
|     let mut res = client.get("http://www.gooogle.com/") |     let res = client.get("http://www.gooogle.com/") | ||||||
|         // set a header |         // set a header | ||||||
|         .header(Connection(vec![Close])) |         .header(Connection(vec![Close])) | ||||||
|         // let 'er go! |         // let 'er go! | ||||||
|         .send(); |         .send().unwrap(); | ||||||
|  |  | ||||||
|     // Read the Response. |     // Read the Response. | ||||||
|     let body = res.read_to_string().unwrap(); |     let body = res.read_to_string().unwrap(); | ||||||
|  |  | ||||||
|     println!("Response: {}", res); |     println!("Response: {}", body); | ||||||
| } | } | ||||||
| ``` | ``` | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user