Rocket/lib/src/http/hyper.rs

26 lines
755 B
Rust
Raw Normal View History

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.
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;
pub use hyper::header;
pub use hyper::mime;
pub use hyper::net;
pub use hyper::method::Method;
pub use hyper::status::StatusCode;
pub use hyper::uri::RequestUri;
pub use hyper::http::h1;
pub use hyper::buffer;
2016-12-20 03:50:27 +00:00
/// Type alias to `hyper::Response<'a, hyper::net::Fresh>`.
pub type FreshResponse<'a> = self::Response<'a, self::net::Fresh>;