Class

Dispatcher

Extends:

Includes:

Dispatches requests to the appropriate controller and takes care of reloading the app after each request when Dependencies.load? is true.

Public Methods
cleanup_application Cleanup the application by clearing out loaded classes so they can be reloaded on the next request without restarting the server.
dispatch
dispatch Backward-compatible class method takes CGI-specific args. Deprecated in favor of Dispatcher.new(output, request, response).dispatch.
dispatch_cgi
failsafe_response If the block raises, send status code as a last-ditch response.
flush_logger
new
prepare_application
reload_application
to_prepare Add a preparation callback. Preparation callbacks are run before every request in development mode, and before the first request in production mode.
Protected Methods
failsafe_rescue
handle_request
Private Methods
failsafe_logger
failsafe_response_body
log_failsafe_exception
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.