| Crates.io | reru |
| lib.rs | reru |
| version | 0.1.2 |
| created_at | 2016-07-15 11:37:10.410451+00 |
| updated_at | 2016-07-17 09:19:52.06999+00 |
| description | A simple HTTP request client |
| homepage | |
| repository | https://github.com/sinkuu/reru |
| max_upload_size | |
| id | 5673 |
| size | 7,962 |
A simple HTTP request client for Rust, inspired by unirest.
let mut res = String::new();
reru::post("https://httpbin.org/post")
.expect("failed to parse URL")
.param("show_env", "1")
.body_json(&["蟹", "Ferris"])
.expect("failed to serialize")
.request()
.expect("failed to send request")
.read_to_string(&mut res)
.expect("failed to read response");
println!("{}", res);