Crates.io | easy-http-request |
lib.rs | easy-http-request |
version | 0.2.13 |
source | src |
created_at | 2018-09-10 21:14:19.307869 |
updated_at | 2022-03-06 08:39:22.44848 |
description | Easy to send HTTP/HTTPS requests. |
homepage | https://magiclen.org/easy-http-request |
repository | https://github.com/magiclen/easy-http-request |
max_upload_size | |
id | 84009 |
size | 43,132 |
Easy to send HTTP/HTTPS requests.
This crate was deprecated, use reqwest
instead.
https://crates.io/crates/reqwest
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.
https://crates.io/crates/easy-http-request
https://docs.rs/easy-http-request