#http #https #request

easy-http-request

Easy to send HTTP/HTTPS requests

7 releases

0.0.7 Nov 14, 2018
0.0.6 Nov 13, 2018
0.0.5 Oct 30, 2018
0.0.4 Sep 28, 2018

#49 in HTTP client

Download history 5/week @ 2018-10-22 5/week @ 2018-10-29 39/week @ 2018-11-05 24/week @ 2018-11-12 82/week @ 2018-11-19 15/week @ 2018-11-26 48/week @ 2018-12-03 36/week @ 2018-12-10 12/week @ 2018-12-17 57/week @ 2018-12-24 8/week @ 2018-12-31 3/week @ 2019-01-07 14/week @ 2019-01-14

132 downloads per month

MIT license

16KB
291 lines

Easy HTTP Request

Build Status 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


lib.rs:

Easy HTTP Request

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.

Dependencies

~7.5MB
~138K SLoC