Skip to main content

Module server

Module server 

Source
Expand description

Core HTTP server runtime.

Use this module when you need a static-first HTTP server with predictable request parsing, policy-aware response generation, and portable runtime behavior across macOS, Linux, and WSL.

The primary entrypoints are Server and ServerBuilder.

Structsยง

ConnectionGuard
RAII guard for connection pool resources
ConnectionPool
Holds the connection pool state for managing database or external connections
Server
Serves static HTTP content with configurable runtime policies.
ServerBuilder
Builds a Server with optional policy and timeout configuration.
ShutdownSignal
Holds shutdown state and coordination for graceful server termination
ThreadPool
A simple thread pool for handling concurrent connections efficiently