Reword http module documentation.

This commit is contained in:
Sergio Benitez 2016-12-19 19:50:27 -08:00
parent f101069610
commit 1851187a2d
2 changed files with 4 additions and 5 deletions

View File

@ -6,7 +6,6 @@
//! These types will, with certainty, be removed with time, but they reside here
//! while necessary.
// TODO: Remove from Rocket in favor of a more flexible HTTP library.
pub use hyper::server::Request as Request;
pub use hyper::server::Response as Response;
pub use hyper::server::Server as Server;
@ -22,5 +21,5 @@ pub use hyper::uri::RequestUri;
pub use hyper::http::h1;
pub use hyper::buffer;
// TODO: Remove from Rocket in favor of a more flexible HTTP library.
/// Type alias to `hyper::Response<'a, hyper::net::Fresh>`.
pub type FreshResponse<'a> = self::Response<'a, self::net::Fresh>;

View File

@ -1,10 +1,10 @@
//! [unstable] Types that map to concepts in HTTP.
//! Types that map to concepts in HTTP.
//!
//! This module exports types that map to HTTP concepts or to the underlying
//! HTTP library when needed. Because the underlying HTTP library is likely to
//! change (see <a
//! href="https://github.com/SergioBenitez/Rocket/issues/17">#17</a>), most of
//! this module should be considered unstable.
//! href="https://github.com/SergioBenitez/Rocket/issues/17">#17</a>), types in
//! [hyper](hyper/index.html) should be considered unstable.
pub mod hyper;
pub mod uri;