easy-http-request

Crates.ioeasy-http-request
lib.rseasy-http-request
version0.2.13
sourcesrc
created_at2018-09-10 21:14:19.307869
updated_at2022-03-06 08:39:22.44848
descriptionEasy to send HTTP/HTTPS requests.
homepagehttps://magiclen.org/easy-http-request
repositoryhttps://github.com/magiclen/easy-http-request
max_upload_size
id84009
size43,132
Magic Len (Ron Li) (magiclen)

documentation

README

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

Commit count: 35

cargo fmt