rama/
http.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
//! rama http support
//!
//! mostly contains re-exports from
//! `rama-http` and `rama-http-backend`.

#[doc(inline)]
pub use ::rama_http::{
    dep, header, headers, io, matcher,
    response::{self, IntoResponse, Response},
    service, Body, BodyDataStream, BodyExtractExt, BodyLimit, HeaderMap, HeaderName, HeaderValue,
    Method, Request, Scheme, StatusCode, Uri, Version,
};

pub mod layer {
    //! Http [`Layer`][crate::Layer]s provided by Rama.
    //!
    //! mostly contains re-exports from
    //! `rama-http` and `rama-http-backend`.

    #[doc(inline)]
    pub use ::rama_http::layer::*;

    #[cfg(feature = "http-full")]
    #[doc(inline)]
    pub use ::rama_http_backend::server::layer::*;
}

#[cfg(feature = "http-full")]
#[doc(inline)]
pub use ::rama_http_backend::{client, server};