2016-10-18 02:29:58 +00:00
|
|
|
//! Re-exported hyper HTTP library types.
|
|
|
|
//!
|
|
|
|
//! ## Hyper
|
|
|
|
//!
|
|
|
|
//! All types that are re-exported from Hyper resides inside of this module.
|
|
|
|
//! These types will, with certainty, be removed with time, but they reside here
|
|
|
|
//! while necessary.
|
|
|
|
|
2016-10-09 11:29:02 +00:00
|
|
|
// TODO: Remove from Rocket in favor of a more flexible HTTP library.
|
2016-12-15 17:24:29 +00:00
|
|
|
pub use hyper::server::Request as Request;
|
|
|
|
pub use hyper::server::Response as Response;
|
|
|
|
pub use hyper::server::Server as Server;
|
|
|
|
pub use hyper::server::Handler as Handler;
|
2016-10-04 00:09:13 +00:00
|
|
|
|
|
|
|
pub use hyper::header;
|
2016-12-15 17:24:29 +00:00
|
|
|
pub use hyper::mime;
|
|
|
|
pub use hyper::net;
|
2016-10-04 00:09:13 +00:00
|
|
|
|
2016-12-15 17:24:29 +00:00
|
|
|
pub use hyper::method::Method;
|
2016-10-04 00:09:13 +00:00
|
|
|
pub use hyper::status::StatusCode;
|
2016-12-15 17:24:29 +00:00
|
|
|
pub use hyper::uri::RequestUri;
|
|
|
|
pub use hyper::http::h1;
|
|
|
|
pub use hyper::buffer;
|
2016-10-04 00:09:13 +00:00
|
|
|
|
2016-10-09 11:29:02 +00:00
|
|
|
// TODO: Remove from Rocket in favor of a more flexible HTTP library.
|
2016-12-15 17:24:29 +00:00
|
|
|
pub type FreshResponse<'a> = self::Response<'a, self::net::Fresh>;
|