Lightweight server module handling http middlewares