Jifty::Handler(3pm)

Jifty::Handler3pm

Methods related to the finding and returning content

Usage

  use Jifty;
  Jifty->new();
  my $handler = Jifty::Handler->new;
  $handler->handle_request( $env );

Overview

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.

new

Create a new Jifty::Handler object. Generally, Jifty.pm does this only once at startup.

view_handlers

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

setup_view_handlers

Initialize all of our view handlers.

view ClassName

Returns the Jifty view handler for "ClassName".

psgi_app_static

Returns a closure for PSGI application that handles all static content, including plugins.

psgi_app

Returns a closure for PSGI application.

handle_request

When 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_request

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.

Releases

2 releases since Debian 6.0 (Squeeze); the text changed 1 time.

  1. 6.0
  2. 7

From libjifty-perl 1.10518+dfsg-2 in Debian 7 (Wheezy). Parsed by carta from the page's man source.