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

Michael Van Canneyt michael at freepascal.org
Sat May 2 23:04:56 CEST 2015



On Sat, 2 May 2015, leledumbo wrote:

>> It is on my todo list, yes.
>
> I'll be waiting.
>
> One more thing (which is actually why I ask my original question), how can I
> get registered module name given the module instance or module class? i.e.
> if I:
>
> RegisterHTTPModule('m',TModule);
>
> then
>
> Something(TModule); or Something(Module);
>
> shall return 'm'. ModuleFactory doesn't seem to provide such a
> functionality. I want to create a listing of what actions are available for
> the current module and I want to avoid repeating registered module name.

A good idea. I'll implement it. 
But you'll have to be prepared that a module can be registered for different URLs, 
so the return is a TStringArray (or Strings).

Michael.



More information about the fpc-pascal mailing list