2018-06-07 13:34:47 +00:00
|
|
|
#![feature(specialization)]
|
|
|
|
#![feature(proc_macro)]
|
|
|
|
#![feature(proc_macro_non_items)]
|
|
|
|
#![feature(const_fn)]
|
|
|
|
#![recursion_limit="256"]
|
|
|
|
|
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.
|
2018-06-07 13:34:47 +00:00
|
|
|
|
|
|
|
#[macro_use]
|
|
|
|
extern crate pear;
|
|
|
|
extern crate smallvec;
|
|
|
|
#[macro_use]
|
|
|
|
extern crate percent_encoding;
|
|
|
|
extern crate cookie;
|
|
|
|
extern crate time;
|
|
|
|
extern crate indexmap;
|
|
|
|
|
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
|
|
|
|
2018-06-07 13:34:47 +00:00
|
|
|
#[cfg(feature = "tls")]
|
|
|
|
pub mod tls;
|
|
|
|
|
|
|
|
#[macro_use]
|
|
|
|
mod docify;
|
2017-03-21 09:04:07 +00:00
|
|
|
#[macro_use]
|
|
|
|
mod known_media_types;
|
2016-10-04 00:09:13 +00:00
|
|
|
mod cookies;
|
|
|
|
mod method;
|
2017-03-21 09:04:07 +00:00
|
|
|
mod media_type;
|
2016-10-04 00:09:13 +00:00
|
|
|
mod content_type;
|
2016-12-15 08:47:31 +00:00
|
|
|
mod status;
|
|
|
|
mod header;
|
2017-03-27 08:53:45 +00:00
|
|
|
mod accept;
|
2017-03-31 00:52:02 +00:00
|
|
|
mod raw_str;
|
2018-06-07 13:34:47 +00:00
|
|
|
mod ext;
|
2017-03-28 10:10:18 +00:00
|
|
|
|
|
|
|
pub(crate) mod parse;
|
2017-01-05 08:14:44 +00:00
|
|
|
|
2017-03-27 08:53:45 +00:00
|
|
|
// We need to export these for codegen, but otherwise it's unnecessary.
|
2017-01-05 08:14:44 +00:00
|
|
|
// TODO: Expose a `const fn` from ContentType when possible. (see RFC#1817)
|
2017-03-30 22:38:51 +00:00
|
|
|
pub mod uncased;
|
2018-06-04 16:06:08 +00:00
|
|
|
#[doc(hidden)] pub use self::parse::Indexed;
|
2017-05-23 23:41:38 +00:00
|
|
|
#[doc(hidden)] pub use self::media_type::{MediaParams, Source};
|
2016-10-04 00:09:13 +00:00
|
|
|
|
|
|
|
pub use self::method::Method;
|
|
|
|
pub use self::content_type::ContentType;
|
2017-06-22 11:29:59 +00:00
|
|
|
pub use self::accept::{Accept, QMediaType};
|
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};
|
2017-03-31 00:52:02 +00:00
|
|
|
pub use self::raw_str::RawStr;
|
2016-10-18 02:29:58 +00:00
|
|
|
|
2017-03-24 05:41:42 +00:00
|
|
|
pub use self::media_type::MediaType;
|
2017-06-06 20:41:04 +00:00
|
|
|
pub use self::cookies::{Cookie, Cookies};
|
2018-06-07 13:34:47 +00:00
|
|
|
|
|
|
|
#[doc(hidden)]
|
|
|
|
pub use self::cookies::{Key, CookieJar};
|