Crate easy_http_request[][src]

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());

Re-exports

pub extern crate url;
pub extern crate http;
pub extern crate hyper;
pub extern crate hyper_tls;
pub extern crate tokio_core;

Structs

HttpResponse

Enums

HttpBody
HttpRequestError

Constants

BODY_EMPTY
HEADERS_EMPTY
QUERY_EMPTY

Functions

delete
get
head
post
put