rocket_http/
lib.rs

1#![warn(rust_2018_idioms)]
2#![warn(missing_docs)]
3
4//! Types that map to concepts in HTTP.
5//!
6//! This module exports types that map to HTTP concepts or to the underlying
7//! HTTP library when needed. Because the underlying HTTP library is likely to
8//! change (see [#17]), types in [`hyper`] should be considered unstable.
9//!
10//! [#17]: https://github.com/rwf2/Rocket/issues/17
11
12#[macro_use]
13extern crate pear;
14
15pub mod hyper;
16pub mod uri;
17pub mod ext;
18
19#[macro_use]
20mod header;
21mod method;
22mod status;
23mod raw_str;
24mod parse;
25mod listener;
26
27/// Case-preserving, ASCII case-insensitive string types.
28///
29/// An _uncased_ string is case-preserving. That is, the string itself contains
30/// cased characters, but comparison (including ordering, equality, and hashing)
31/// is ASCII case-insensitive. **Note:** the `alloc` feature _is_ enabled.
32pub mod uncased {
33    #[doc(inline)] pub use uncased::*;
34}
35
36// Types that we expose for use _only_ by core. Please don't use this.
37#[doc(hidden)]
38#[path = "."]
39pub mod private {
40    pub use crate::parse::Indexed;
41    pub use smallvec::{SmallVec, Array};
42    pub use crate::listener::{TcpListener, Incoming, Listener, Connection, Certificates};
43    pub use cookie;
44}
45
46#[doc(hidden)]
47#[cfg(feature = "tls")]
48pub mod tls;
49
50pub use crate::method::Method;
51pub use crate::status::{Status, StatusClass};
52pub use crate::raw_str::{RawStr, RawStrBuf};
53pub use crate::header::*;