You are not logged in.
Pages: 1
Offline
I use this (with FPC):
TMyHttpServer = class(TSQLHttpServer)
protected
function Request(Ctxt: THttpServerRequest): cardinal; override;
end;
function TMyHttpServer.Request(Ctxt: THttpServerRequest): cardinal;
begin
.. your code
result := inherited Request(Ctxt);
.. your code
end;
Hope it helps.
Offline
Thx ... for the help
i want decide this trouble to standart way ... but no idea what's happening
Last edited by mstrVLT (2016-04-06 12:13:09)
Offline
oh i solved
HTTPServer := THttpServer.Create('8089');
HTTPServer.OnRequest := @HTTPServerRequest;
Offline
When working with the mORMot, I would advice to always use
{$MODE DELPHI}
Then this "HTTPServer.OnRequest := HTTPServerRequest;" would have worked !
Last edited by AOG (2016-04-06 12:20:32)
Offline
Pages: 1