Skip to main contentCrate rust_webx_host
Source pub use auth_jwt::*;pub use authz::*;pub use compression::*;pub use context::*;pub use cors::*;pub use diagnostics::*;pub use endpoint::*;pub use health::*;pub use memory_cache::*;pub use metrics::*;pub use pipeline::*;pub use problem_response::*;pub use rate_limit::*;pub use request_id::*;pub use request_tracing::*;pub use router::*;pub use security_headers::*;pub use server::*;pub use timing::*;
- auth_jwt
- JWT authentication module for the rust-webx framework.
- authz
- Resource-based authorization module for the rust-webx framework.
- compression
- Response compression using gzip/deflate (via flate2).
- context
- HttpContext —Runtime implementation of IHttpContext, IHttpRequest, IHttpResponse.
- cors
- Cross-Origin Resource Sharing (CORS) middleware.
- diagnostics
- Route/handler startup diagnostics (uses tracing — host layer only).
- endpoint
- Endpoint —IEndpoint implementations for dual-mode dispatch.
- health
- Enhanced health check endpoints for Kubernetes.
- memory_cache
- In-process memory cache —matches ASP.NET Core’s
MemoryCache. - metrics
- HTTP request counters exposed at
GET /metrics (Prometheus text format). - pipeline
- Middleware pipeline —Sequential execution model.
- problem_response
- RFC 7807 Problem Details helpers for consistent HTTP error responses.
- rate_limit
- Per-IP token-bucket rate-limiting middleware.
- request_id
- Request ID middleware —injects a unique
x-request-id header into every response. - request_tracing
- Structured request tracing middleware with trace_id injection.
- router
- Matchit-based router with zero-alloc route matching.
- security_headers
- Security headers middleware for the rust-webx framework.
- server
- Host builder and hyper server integration.
- timing
- Timing middleware —demonstrates the after hook by injecting a per-request counter.