Module hyper::client
[-]
[+]
[src]
HTTP Client
Usage
The Client
API is designed for most people to make HTTP requests.
It utilizes the lower level Request
API.
use hyper::Client; let mut client = Client::new(); let mut res = client.get("http://example.domain").send().unwrap(); assert_eq!(res.status, hyper::Ok);
The returned value from is a Response
, which provides easy access
to the status
, the headers
, and the response body via the Writer
trait.
Reexports
pub use self::request::Request; |
pub use self::response::Response; |
Modules
request | Client Requests |
response | Client Responses |
Structs
Client | A Client to use additional features with Requests. |
RequestBuilder | Options for an individual Request. |
Enums
Body | The target enum for the IntoBody trait. |
RedirectPolicy | Behavior regarding how to handle redirects within a Client. |
Traits
IntoBody | A helper trait to allow overloading of the body parameter. |
IntoUrl | A helper trait to convert common objects into a Url. |