Module server

Module server 

Source
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
ServerConfig
Server configuration
SessionManager
Manages active sessions

Functions§

create_router
Create the API router
health_check
Health check endpoint