Skip to main content

o_sfu/runtime/http_server/
mod.rs

1//! This module is the synchronous sibling of `websocket_server`: it exposes the server's
2//! endpoints, translates authenticated HTTP requests into application
3//! room intents, and then renders the resulting public HTTP contract.
4//!
5//! ```text
6//! http_server
7//! |- controller -> Axum app construction plus route wiring and response shaping
8//! |- extractors -> typed request extraction and verified route inputs
9//! ```
10//!
11//! Read this node before the WebSocket path when you need the server's non-streaming
12//! control plane.
13
14#[cfg(test)]
15#[allow(non_snake_case, reason = "test modules map to local TESTS directories")]
16mod TESTS;
17pub(crate) mod contract;
18mod controller;
19mod extractors;
20
21#[cfg(test)]
22pub(crate) use controller::app;
23pub(crate) use controller::{serve_http, serve_http_on};