This class provides an interface for dispatching a CGI (or CGI-like)
request to the appropriate controller and action. It also takes care of
resetting the environment (when Dependencies.load? is true) after each
request.
| Public Methods |
| dispatch |
Dispatch the given CGI request, using the given session options, and
emitting the output via the given output. If you dispatch with your own CGI
object be sure to handle the exceptions it raises on multipart requests
(EOFError and ArgumentError).
|
| reset_application! |
Reset the application by clearing out loaded controllers, views, actions,
mailers, and so forth. This allows them to be loaded again without having
to restart the server (WEBrick, FastCGI, etc.).
|
| to_prepare |
Add a preparation callback. Preparation callbacks are run before every
request in development mode, and before the first request in production
mode.
|
<code/>and<pre/>for code samples.