reru

Crates.ioreru
lib.rsreru
version0.1.2
sourcesrc
created_at2016-07-15 11:37:10.410451
updated_at2016-07-17 09:19:52.06999
descriptionA simple HTTP request client
homepage
repositoryhttps://github.com/sinkuu/reru
max_upload_size
id5673
size7,962
Shotaro Yamada (sinkuu)

documentation

https://sinkuu.github.io/reru/reru/

README

reru

Crates.io

A simple HTTP request client for Rust, inspired by unirest.

Documentation

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);
Commit count: 15

cargo fmt