aboutsummaryrefslogtreecommitdiff
path: root/src/lib.rs
blob: 034a21bfb87e4508d6355de9583a561bc0b9a3eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
//! A lightweight layer on top of [Hyper](https://hyper.rs/)
//! to facilitate building web applications.

#![cfg_attr(docsrs, feature(doc_cfg))]

pub use mime;
pub use httpdate;

pub mod request;
pub mod response;

#[cfg(feature="security")]
#[cfg_attr(docsrs, doc(cfg(feature = "security")))]
pub mod security;

#[cfg(feature="hyper_body")]
#[cfg_attr(docsrs, doc(cfg(feature = "hyper_body")))]
pub mod hyper_body;

#[cfg(not(feature="hyper_body"))]
use http;
#[cfg(feature="hyper_body")]
use hyper::http;