#http #https #request

easy-http-request

Easy to send HTTP/HTTPS requests

3 releases

0.0.3 Sep 11, 2018
0.0.2 Sep 10, 2018
0.0.1 Sep 10, 2018

#15 in #https

Download history 35/week @ 2018-09-14 10/week @ 2018-09-21 12/week @ 2018-09-28 9/week @ 2018-10-05 3/week @ 2018-10-12 65/week @ 2018-10-19 1/week @ 2018-10-26 43/week @ 2018-11-02

9 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

~11MB
~250K SLoC