HTML Engine Server
TsgcHTMLEngine_Server — binds sgcHTML page rendering to a TsgcWSHTTPServer and serves rendered pages plus all embedded Bootstrap, htmx and Chart.js assets.
TsgcHTMLEngine_Server — binds sgcHTML page rendering to a TsgcWSHTTPServer and serves rendered pages plus all embedded Bootstrap, htmx and Chart.js assets.
An infrastructure component that attaches to a running TsgcWSHTTPServer, intercepts incoming HTTP requests and routes them to the correct sgcHTML page handler. Embedded Bootstrap, htmx and Chart.js are served automatically; no CDN required.
TsgcHTMLEngine_Server
Serves sgcHTML pages over HTTP
Delphi, C++ Builder, .NET
Assign the Server property, set Active to True and every registered page is reachable over HTTP with Bootstrap CSS/JS served automatically from embedded resources.
uses
sgcHTMLEngine_Server;
var
oEngine: TsgcHTMLEngine_Server;
begin
oEngine := TsgcHTMLEngine_Server.Create(nil);
try
oEngine.Server := WSSServer; // your TsgcWSHTTPServer
oEngine.BaseURL := '/';
oEngine.Active := True;
except
oEngine.Free;
raise;
end;
// oEngine now serving; free it when the server shuts down
end;
// includes: sgcHTMLEngine_Server.hpp
TsgcHTMLEngine_Server *oEngine = new TsgcHTMLEngine_Server(NULL);
oEngine->Server = WSSServer;
oEngine->BaseURL = "/";
oEngine->Active = true;
using esegece.sgcWebSockets;
var engine = new TsgcHTMLEngine_Server();
engine.Server = wssServer;
engine.BaseURL = "/";
engine.Active = true;
The members you reach for most often.
Assign the active TsgcWSHTTPServer the engine should serve HTTP requests through.
Set to True to start the engine; it intercepts matching requests and delegates them to your page handlers.
The URL path prefix for all pages managed by this engine (default '/').
Bootstrap CSS/JS and Chart.js are automatically served from embedded resources; no CDN required at runtime.
Register a page handler at a specific sub-path so the engine routes requests to your sgcHTML rendering logic.
Entry point called by the host server for each incoming request; routes to the correct page or serves a static asset.
| Online HelpFull API reference and usage guide for this component. | Open | |
| All sgcHTML ComponentsBrowse the full feature matrix of 60+ components. | Open | |
| Download Free TrialThe 30-day trial ships the 60.HTML demo projects. | Open | |
| PricingSingle, Team and Site licenses with full source code. | Open |