![]() |
![]()
| ![]() |
![]()
NAMEJifty::Handler - Methods related to the finding and returning content SYNOPSISuse Jifty; Jifty->new(); my $handler = Jifty::Handler->new; $handler->handle_request( $env ); DESCRIPTIONJifty::Handler provides methods required to find and return content to the browser. "handle_request", for instance, is the main entry point for HTTP requests. newCreate a new Jifty::Handler object. Generally, Jifty.pm does this only once at startup. view_handlersReturns 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 setup_view_handlersInitialize all of our view handlers. view ClassNameReturns the Jifty view handler for "ClassName". psgi_app_staticReturns a closure for PSGI application that handles all static content, including plugins. psgi_appReturns a closure for PSGI application. handle_requestWhen your server process (be it Jifty-internal, FastCGI or anything else) wants to handle a request coming in from the outside world, you should call "handle_request". cleanup_requestDispatchers 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.
|