#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

#14 in #https

Download history 28/week @ 2018-09-12

9 downloads per month

MIT license

10KB
170 lines

Easy HTTP Request

Build Status Build status

Easy to send HTTP/HTTPS requests.

Example

extern crate easy_http_request;

use easy_http_request::*;

let response = easy_http_request::get("https://magiclen.org", QUERY_EMPTY, HEADERS_EMPTY).unwrap();

println!("{}", response.status_code);
println!("{:?}", response.headers);
println!("{}", String::from_utf8(response.body).unwrap());

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::*;

let response = easy_http_request::get("https://magiclen.org", QUERY_EMPTY, HEADERS_EMPTY).unwrap();

println!("{}", response.status_code);
println!("{:?}", response.headers);
println!("{}", String::from_utf8(response.body).unwrap());

Dependencies

~11MB
~246K SLoC