Crate follow_redirects [] [src]

Extension for hyper to follow HTTP redirects.

Example

extern crate hyper;
extern crate follow_redirects;

// 1. import the extension trait
use follow_redirects::ClientExt;

// ...
// 2. create a standard hyper client
let client = hyper::Client::new(&handle);

// ...
// 3. make a request that will follow redirects
let url = "http://docs.rs/hyper".parse().unwrap();
let future = client.follow_redirects().get(url);

Structs

Client

A client to make outgoing HTTP requests, and which follows redirects.

FutureResponse

A Future that will resolve to an HTTP Response.

Traits

ClientExt

Extension trait for adding follow-redirect features to hyper::Client.