[fpc-pascal] fcl-web: retrieve URI given TFPWebModule and TFPWebAction instances

leledumbo leledumbo_cool at yahoo.co.id
Fri May 1 16:29:40 CEST 2015


Is there any easy way to retrieve URI given TFPWebModule and TFPWebAction
instances?

for instance:
...
RegisterHTTPModule('m',TAModule);
...
from inside an action's request handler:
procedure Tm.XXXRequest(Sender: TObject; ARequest: TRequest;
  AResponse: TResponse; var Handled: Boolean);
begin
  AResponse.Content := GetURI(Self,Actions.CurrentAction); // will be
'/m/xxx'
end;



--
View this message in context: http://free-pascal-general.1045716.n5.nabble.com/fcl-web-retrieve-URI-given-TFPWebModule-and-TFPWebAction-instances-tp5721650.html
Sent from the Free Pascal - General mailing list archive at Nabble.com.



More information about the fpc-pascal mailing list