Rocket/lib/src/http/mod.rs

34 lines
952 B
Rust
Raw Normal View History

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.
pub mod hyper;
2016-10-04 00:25:27 +00:00
pub mod uri;
#[macro_use]
mod known_media_types;
mod cookies;
mod session;
mod method;
mod media_type;
mod content_type;
mod status;
mod header;
mod parse;
// 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;
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};
pub use self::header::{Header, HeaderMap};
2016-10-18 02:29:58 +00:00
pub use self::media_type::*;
pub use self::cookies::*;
pub use self::session::*;