25 releases

0.2.13 Mar 6, 2022
0.2.12 Jun 13, 2021
0.2.11 Apr 21, 2021
0.2.10 Mar 10, 2021
0.0.7 Nov 14, 2018

#8 in #http-https

22 downloads per month
Used in 3 crates

MIT license

27KB
590 lines

Easy HTTP Request

CI

Easy to send HTTP/HTTPS requests.

This crate was deprecated, use reqwest instead.

https://crates.io/crates/reqwest

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

~4–14MB
~210K SLoC