EPL HTTP Server
Multi-threaded server with WebSocket and virtual hosting
A high-performance HTTP/HTTPS/WebSocket server built entirely in EPL, designed for flexibility and extensibility.
Key Features
- Multi-Threaded - Thread pool for concurrent request handling
- HTTPS/SSL - Full SSL/TLS support with certificate management
- WebSocket - Native WebSocket protocol support
- Virtual Hosting - Multiple sites on single server instance
- Template Engine - Built-in template processing with callbacks
- Modular Architecture - Pluggable site modules
Module Pattern
class THTTP_MySite : public THTTP_Module {
int TemplId;
}
virtual int THTTP_MySite::Prepare() {
LoadJson();
TemplOP->PrepareTemplate(TemplId, 2, "page.html");
return 1;
}
int THTTP_MySite::Handler(TAction ptr Action) {
// Process request
Action->OutText = response;
return 1;
}
Configuration
Sites are configured via JSON, supporting custom modules, templates, and routing for each virtual host.