I have a server providing an HttpAPI REST interface which works fine.
I now need to expand this server to listen on multiple different ports. The API itself is the same and each method may be access via any of the ports but each method must be able to determine which local port was used to access it, to provide context.
To achieve this I can create TROHTTPServer and TROHttpApiDispatcher objects at run-time, one pair for each port on which I need to listen.
How then, within each method, can I obtain either which port or which of the above objects were used to acces the method, giving me the context I need?
Thanks,
Toby.