follow-redirects

Crates.iofollow-redirects
lib.rsfollow-redirects
version0.1.3
sourcesrc
created_at2018-04-04 15:59:02.363364
updated_at2018-04-04 22:51:09.099098
descriptionExtension for hyper to follow HTTP redirects
homepage
repositoryhttps://github.com/srijs/rust-follow-redirects
max_upload_size
id58939
size21,862
Sam Rijs (srijs)

documentation

https://docs.rs/follow-redirects

README

follow-redirects

Extension for hyper to follow HTTP redirects.

Documentation

Build Status crates.io

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);
Commit count: 15

cargo fmt