server
Universal server abstractions for all protocols
Structs
Section titled “Structs”UniversalServer
Section titled “UniversalServer”Universal Server - Single entry point for all protocols
Methods
fn new() -> SelfCreate new universal server
register_protocol
Section titled “register_protocol”fn register_protocol<H>(&mut self, protocol: &str, handler: H)where H: crate::AsyncProtocolHandler + ?Register protocol handler with the router
add_health_endpoint
Section titled “add_health_endpoint”fn add_health_endpoint(&mut self, protocol: &str, endpoint: &str)Add health endpoint for specific protocol
serve_mock_request
Section titled “serve_mock_request”fn serve_mock_request(&self, path: &str, _method: &str, _body: &[u8]) -> anyhow::Result<(u16, HashMap<String, String>, Vec<u8>)>