Dispatches requests to the appropriate controller and takes care of reloading the app after each request when Dependencies.load? is true.
| Public Methods | |
|---|---|
| cleanup_ |
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_ |
|
| failsafe_ |
If the block raises, send status code as a last-ditch response. |
| flush_ |
|
| new | |
| prepare_ |
|
| reload_ |
|
| to_ |
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_ |
|
| handle_ |
|
| Private Methods | |
|---|---|
| failsafe_ |
|
| failsafe_ |
|
| log_ |
|
<code/>and<pre/>for code samples.