move Response pieces into its own response module

This commit is contained in:
Sean McArthur
2017-04-05 16:48:32 -07:00
parent 1ed028ccc3
commit 4d68979523
3 changed files with 168 additions and 156 deletions

View File

@@ -118,15 +118,17 @@ pub use hyper::version::HttpVersion;
pub use hyper::Url;
pub use url::ParseError as UrlError;
pub use self::client::{Client, Response, RequestBuilder};
pub use self::client::{Client, RequestBuilder};
pub use self::error::{Error, Result};
pub use self::body::Body;
pub use self::redirect::RedirectPolicy;
pub use self::response::Response;
mod body;
mod client;
mod error;
mod redirect;
mod response;
/// Shortcut method to quickly make a `GET` request.