use crate::socket::{HttpRequestType, HttpResCode}; #[cfg(feature="chat")] pub mod chat; pub mod index; #[cfg(feature = "ttt")] pub mod ttt; pub trait App { fn socket_name(&self) -> &'static str; async fn handle_request<'a>( &'a mut self, host: &str, path: &str, req_type: HttpRequestType, content: &str, ) -> (HttpResCode, &'static str, &'a str); }