Expand description

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.

Re-exports

pub extern crate hyper;
pub extern crate hyper_native_tls;
pub extern crate mime;
pub extern crate slash_formatter;
pub extern crate url;

Structs

The http request sender. See DefaultHttpRequest or StaticHttpRequest.

Options for HttpRequest.

The http response.

Enums

A http request body that you want to send.

Errors for HttpRequest.

The HTTP request method.

Type Definitions

Use strings for query, body and headers.

Use static string slices for query, body and headers.