
Jifty::Handler - Methods related to the finding and returning content

use Jifty; Jifty->new(); my $handler = Jifty::Handler->handle_request( cgi => $cgi ); # after each request is handled Jifty::Handler->cleanup_request;

Jifty::Handler provides methods required to find and return content to the browser. "handle_request", for instance, is the main entry point for HTTP requests.
Create a new Jifty::Handler object. Generally, Jifty.pm does this only once at startup.
Returns a list of modules implementing view for your Jifty application.
You can override this by specifying:
framework:
View:
Handlers:
- Jifty::View::Something::Handler
- Jifty::View::SomethingElse::Handler
Initialize all of our view handlers.
Returns the Jifty view handler for ClassName.
Returns the CGI object for the current request, or undef if there is none.
Returns the HTML::Mason::FakeApache or Apache object for the current request, ot undef if there is none.
When your server processs (be it Jifty-internal, FastCGI or anything else) wants to handle a request coming in from the outside world, you should call handle_request.
Sends any relevent HTTP headers, by calling "send_http_header" in HTML::Mason::FakeApache. If this is running inside a standalone server, also sends the HTTP status header first.
Returns false if the header has already been sent.
Dispatchers should call this at the end of each request, as a class method. It flushes the session to disk, as well as flushing Jifty::DBI's cache.