Skip to main content

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, layer, 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
19#[cfg(feature = "http-full")]
20#[cfg_attr(docsrs, doc(cfg(feature = "http-full")))]
21pub mod client;
22
23#[cfg(feature = "http-full")]
24#[cfg_attr(docsrs, doc(cfg(feature = "http-full")))]
25#[doc(inline)]
26pub use ::rama_http_backend::server;
27
28#[cfg(feature = "http-full")]
29#[cfg_attr(docsrs, doc(cfg(feature = "http-full")))]
30#[doc(inline)]
31pub use ::rama_http_backend::proxy;
32
33#[cfg(feature = "ws")]
34#[cfg_attr(docsrs, doc(cfg(feature = "ws")))]
35#[doc(inline)]
36pub use ::rama_ws as ws;
37
38#[cfg(feature = "tls")]
39#[cfg_attr(docsrs, doc(cfg(feature = "tls")))]
40pub mod tls;
41
42#[cfg(feature = "grpc")]
43#[cfg_attr(docsrs, doc(cfg(feature = "grpc")))]
44#[doc(inline)]
45pub use ::rama_grpc as grpc;
46
47#[cfg(feature = "html")]
48#[cfg_attr(docsrs, doc(cfg(feature = "html")))]
49#[doc(inline)]
50pub use ::rama_http::html;