//------------------------------------------------------------------------------ // Uint: 例子/自动刷新 //------------------------------------------------------------------------------ unit autorefresh; interface uses System.SysUtils, System.IOUtils, System.Classes, FireHttp.Utils, FireHttp.Types, FireHttp.Classes, FireHttp.HTML, FireHttp.Path, FireHttp.Log, FireHttp.Config; type example_autorefresh = class(THTMLHandler) public const __PathInfo = '/autorefresh'; const __Description = ''; protected procedure Execute; override; procedure Cleanup; override; public constructor Create(AThread: TWorkerThread); override; destructor Destroy; override; end; implementation { example_autorefresh } procedure example_autorefresh.Cleanup; begin inherited; end; constructor example_autorefresh.Create(AThread: TWorkerThread); begin inherited Create(AThread); {$region '设置处理者'} MultiPathInfo.Add(__PathInfo); Description := __Description; {$endregion} end; destructor example_autorefresh.Destroy; begin inherited; end; procedure example_autorefresh.Execute; begin inherited; with Document do begin Title.Text := 'AutoRefresh'; Body.Attributes['style'] := 'text-align:center'; Body.HTML := '