Multi-threaded server with WebSocket and virtual hosting
A high-performance HTTP/HTTPS/WebSocket server built entirely in EPL, designed for flexibility and extensibility.
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;
}
Sites are configured via JSON, supporting custom modules, templates, and routing for each virtual host.