Skip to main content

webx_host/
lib.rs

1//! HTTP server, middleware pipeline, and routing (package `rust-webx-host`,
2//! imported as `webx_host`).
3//!
4//! Implements the [`webx_core`] contracts on hyper + tokio: the `Host` builder,
5//! the middleware pipeline, the Trie router, JWT auth/authorization, and the
6//! production middleware (compression, timing, tracing, rate limiting).
7
8pub mod auth_jwt;
9pub mod authz;
10pub mod compression;
11pub mod context;
12pub mod cors;
13pub mod diagnostics;
14pub mod endpoint;
15pub mod health;
16pub mod memory_cache;
17pub mod metrics;
18#[cfg(feature = "password-argon2")]
19pub mod password_argon2;
20pub mod pipeline;
21pub mod problem_response;
22pub mod rate_limit;
23pub mod request_id;
24pub mod request_tracing;
25pub mod router;
26pub mod security_headers;
27pub mod server;
28pub mod timing;
29
30#[cfg(feature = "testing")]
31pub mod testing;
32
33pub use auth_jwt::*;
34pub use authz::*;
35pub use compression::*;
36pub use context::*;
37pub use cors::*;
38pub use diagnostics::*;
39pub use endpoint::*;
40pub use health::*;
41pub use memory_cache::*;
42pub use metrics::*;
43#[cfg(feature = "password-argon2")]
44pub use password_argon2::*;
45pub use pipeline::*;
46pub use problem_response::*;
47pub use rate_limit::*;
48pub use request_id::*;
49pub use request_tracing::*;
50pub use router::*;
51pub use security_headers::*;
52pub use server::*;
53pub use timing::*;