mirror of
https://github.com/danieleteti/delphimvcframework.git
synced 2024-11-16 16:25:54 +01:00
37 lines
781 B
ObjectPascal
37 lines
781 B
ObjectPascal
unit WebModuleU;
|
|
|
|
interface
|
|
|
|
uses System.SysUtils, System.Classes, Web.HTTPApp;
|
|
|
|
type
|
|
TWebModule1 = class(TWebModule)
|
|
procedure WebModule1DefaultHandlerAction(Sender: TObject;
|
|
Request: TWebRequest; Response: TWebResponse; var Handled: Boolean);
|
|
private
|
|
{ Private declarations }
|
|
public
|
|
{ Public declarations }
|
|
end;
|
|
|
|
var
|
|
WebModuleClass: TComponentClass = TWebModule1;
|
|
|
|
implementation
|
|
|
|
{%CLASSGROUP 'Vcl.Controls.TControl'}
|
|
|
|
{$R *.dfm}
|
|
|
|
procedure TWebModule1.WebModule1DefaultHandlerAction(Sender: TObject;
|
|
Request: TWebRequest; Response: TWebResponse; var Handled: Boolean);
|
|
begin
|
|
Response.Content :=
|
|
'<html>' +
|
|
'<head><title>ISAPI Web Server Application</title></head>' +
|
|
'<body>Web Server Application</body>' +
|
|
'</html>';
|
|
end;
|
|
|
|
end.
|