#http #https #request

easy-http-request

Easy to send HTTP/HTTPS requests

9 releases

0.1.0 Feb 25, 2019
0.0.8 Jan 25, 2019
0.0.7 Nov 14, 2018
0.0.5 Oct 30, 2018
0.0.4 Sep 28, 2018

#70 in HTTP client

Download history 5/week @ 2018-12-14 62/week @ 2018-12-21 2/week @ 2018-12-28 11/week @ 2019-01-04 9/week @ 2019-01-11 5/week @ 2019-01-18 12/week @ 2019-01-25 1/week @ 2019-02-01 2/week @ 2019-02-08 3/week @ 2019-02-15 12/week @ 2019-02-22 24/week @ 2019-03-01 7/week @ 2019-03-08 13/week @ 2019-03-15 77/week @ 2019-03-22

58 downloads per month

MIT license

23KB
424 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

~8MB
~151K SLoC