Skip to main content

Module http

Module http 

Source
Expand description

HTTP routing, middleware, handlers, and WebSocket support for Envoy.

Split from the monolithic http.rs (1968 LOC) into focused modules:

  • state — shared application state (AppState, SharedState, WsRegistry)
  • middleware — rate limiting and auth middleware
  • router — route table construction (build_router, build_router_unlimited)
  • types — request/response structs
  • handlers — HTTP handler functions
  • ws — WebSocket handler and broadcast logic

Re-exports§

pub use router::build_router;
pub use router::build_router_unlimited;
pub use state::run_nudge_loop;
pub use state::AppState;
pub use state::SharedState;
pub use types::CreateDependencyRequest;
pub use types::HealthResponse;
pub use types::PollQuery;
pub use types::PollResponse;
pub use types::RegisterRequest;
pub use types::SendMessageRequest;
pub use types::StatsResponse;

Modules§

handlers
middleware
router
state
types
ws