Expand description
M2M Protocol HTTP server.
Provides an HTTP API for M2M protocol operations:
- Session management (handshake)
- Compression/decompression
- Security scanning
§Example
ⓘ
use m2m::server::{Server, ServerConfig};
let config = ServerConfig::default().with_port(8080);
let server = Server::new(config);
server.run().await?;Structs§
- AppState
- Application state shared across handlers
- Server
Config - Server configuration
- Session
Manager - Manages active sessions
Functions§
- create_
router - Create the API router
- health_
check - Health check endpoint