rama/http/
mod.rs

1//! rama http support
2//!
3//! mostly contains re-exports from
4//! `rama-http` and `rama-http-backend`.
5
6#[doc(inline)]
7pub use ::rama_http::{
8    Body, BodyDataStream, BodyExtractExt, BodyLimit, HeaderMap, HeaderName, HeaderValue, HttpError,
9    HttpResult, InfiniteReader, Method, Request, Response, Scheme, StatusCode, StreamingBody, Uri,
10    Version, body, conn, convert, header, headers, io, matcher, mime, opentelemetry, proto,
11    request, response, service, sse, uri, utils,
12};
13
14#[cfg(feature = "http-full")]
15#[cfg_attr(docsrs, doc(cfg(feature = "http-full")))]
16#[doc(inline)]
17pub use ::rama_http_core as core;
18
19pub mod layer {
20    //! Http [`Layer`][crate::Layer]s provided by Rama.
21    //!
22    //! mostly contains re-exports from
23    //! `rama-http` and `rama-http-backend`.
24
25    #[doc(inline)]
26    pub use ::rama_http::layer::*;
27
28    #[cfg(feature = "http-full")]
29    #[cfg_attr(docsrs, doc(cfg(feature = "http-full")))]
30    #[doc(inline)]
31    pub use ::rama_http_backend::server::layer::*;
32}
33
34#[cfg(feature = "http-full")]
35#[cfg_attr(docsrs, doc(cfg(feature = "http-full")))]
36pub mod client;
37
38#[cfg(feature = "http-full")]
39#[cfg_attr(docsrs, doc(cfg(feature = "http-full")))]
40#[doc(inline)]
41pub use ::rama_http_backend::server;
42
43#[cfg(feature = "ws")]
44#[cfg_attr(docsrs, doc(cfg(feature = "ws")))]
45#[doc(inline)]
46pub use ::rama_ws as ws;
47
48#[cfg(feature = "tls")]
49#[cfg_attr(docsrs, doc(cfg(feature = "tls")))]
50pub mod tls;