m2m/server/mod.rs
1//! M2M Protocol HTTP server.
2//!
3//! Provides an HTTP API for M2M protocol operations:
4//! - Session management (handshake)
5//! - Compression/decompression
6//! - Security scanning
7//!
8//! # Example
9//!
10//! ```rust,ignore
11//! use m2m::server::{Server, ServerConfig};
12//!
13//! let config = ServerConfig::default().with_port(8080);
14//! let server = Server::new(config);
15//! server.run().await?;
16//! ```
17
18mod config;
19mod handlers;
20mod state;
21
22pub use config::ServerConfig;
23pub use handlers::{create_router, health_check};
24pub use state::{AppState, SessionManager};