redirect and error reform

- `Error` has been made an opaque struct.
- `RedirectPolicy` now makes use of `RedirectAttempt` and `RedirectAction`.
This commit is contained in:
Sean McArthur
2017-05-05 09:59:12 -07:00
parent b0ef498f77
commit d514d4e6e8
6 changed files with 284 additions and 103 deletions

View File

@@ -124,9 +124,9 @@ pub use self::body::Body;
pub use self::redirect::RedirectPolicy;
pub use self::response::Response;
#[macro_use] mod error;
mod body;
mod client;
mod error;
mod redirect;
mod response;
@@ -161,4 +161,8 @@ fn _assert_impls() {
assert_send::<RequestBuilder>();
assert_send::<Response>();
assert_send::<Error>();
assert_sync::<Error>();
}