20 releases

✓ Uses Rust 2018 edition

0.2.8 Jun 27, 2020
0.2.6 Feb 27, 2020
0.2.5 Sep 16, 2019
0.2.2 Jul 28, 2019
0.0.7 Nov 14, 2018

#45 in HTTP client

Download history 23/week @ 2020-03-15 87/week @ 2020-03-22 11/week @ 2020-03-29 104/week @ 2020-04-05 100/week @ 2020-04-12 18/week @ 2020-04-19 17/week @ 2020-04-26 15/week @ 2020-05-03 11/week @ 2020-05-10 36/week @ 2020-05-17 32/week @ 2020-05-24 68/week @ 2020-05-31 11/week @ 2020-06-07 37/week @ 2020-06-14 48/week @ 2020-06-21 45/week @ 2020-06-28

159 downloads per month
Used in rocket-recaptcha-v3

MIT license

25KB
581 lines

Easy HTTP Request

Build Status

Easy to send HTTP/HTTPS requests.

Example

extern crate easy_http_request;

use easy_http_request::DefaultHttpRequest;

let response = DefaultHttpRequest::get_from_url_str("https://magiclen.org").unwrap().send().unwrap();

println!("{}", response.status_code);
println!("{:?}", response.headers);
println!("{}", String::from_utf8(response.body).unwrap());

More examples are in the examples directory.

Crates.io

https://crates.io/crates/easy-http-request

Documentation

https://docs.rs/easy-http-request

License

MIT

Dependencies

~3–4.5MB
~105K SLoC