2016-12-20 03:50:27 +00:00
|
|
|
//! Types that map to concepts in HTTP.
|
2016-10-18 02:29:58 +00:00
|
|
|
//!
|
|
|
|
//! 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
|
2016-12-20 03:50:27 +00:00
|
|
|
//! href="https://github.com/SergioBenitez/Rocket/issues/17">#17</a>), types in
|
|
|
|
//! [hyper](hyper/index.html) should be considered unstable.
|
2016-10-04 00:09:13 +00:00
|
|
|
pub mod hyper;
|
2016-10-04 00:25:27 +00:00
|
|
|
pub mod uri;
|
2016-10-04 00:09:13 +00:00
|
|
|
|
|
|
|
mod cookies;
|
|
|
|
mod method;
|
|
|
|
mod content_type;
|
2016-12-15 08:47:31 +00:00
|
|
|
mod status;
|
|
|
|
mod header;
|
2017-01-05 08:14:44 +00:00
|
|
|
|
|
|
|
// We need to export this for codegen, but otherwise it's unnecessary.
|
|
|
|
// TODO: Expose a `const fn` from ContentType when possible. (see RFC#1817)
|
|
|
|
#[doc(hidden)] pub mod ascii;
|
2016-10-04 00:09:13 +00:00
|
|
|
|
|
|
|
pub use self::method::Method;
|
|
|
|
pub use self::content_type::ContentType;
|
2016-12-20 03:46:49 +00:00
|
|
|
pub use self::status::{Status, StatusClass};
|
2016-12-15 20:37:17 +00:00
|
|
|
pub use self::header::{Header, HeaderMap};
|
2016-10-18 02:29:58 +00:00
|
|
|
|
2016-10-04 00:09:13 +00:00
|
|
|
pub use self::cookies::{Cookie, Cookies};
|