Dispatcher task

In general, task of a dispatcher is quite simple. Given request uri, it must find instance of class that will handle the request, passing all relevant informations to it, execute the handler and return response.

A dispatcher in Fano Framework must implements IDispatcher interface.

IDispatcher = interface
    function dispatchRequest(const env: ICGIEnvironment) : IResponse;
  • env, CGI environment variable that is given by web server.