GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  JIFTY::VIEW::STATIC::HANDLER (3)

.ds Aq ’

NAME

Jifty::View::Static::Handler - Jifty view handler for static files

CONTENTS

DESCRIPTION

This is deprecated and is being port to a stack of plack middleware and plack::app::file

This class takes care of serving out static files for a Jifty application.

When fully operational, it will use an algorithm along the lines of the following:

* Static files are served out of a separate root * If static files go through apache:
* How do we merge together the N static roots? * If static files go through Jifty::Handler
* We need a flag to allow them to go through the dispatcher, too
* return True (304) for if-modified-since
* if the browser accepts gzipped data,
see if we have a cached gzipped copy
if so, send it
see if we have a marker indicating that gzip is a lose
if so, send uncompressed



        gzip the content
        send the gzipped content
     * if the browser doesnt accept gzipped content
        send the content uncompressed



    new

Create a new static file handler. Likely, only the Jifty::Handler needs to do this.

    roots

Returns all the static roots the handler will search

show CW$path

Handle a request for $path. If we can’t find a static file of that name, return undef.

handle_request CW$path

An alias for show

file_path CW$path

Returns the system path for $path, searching inside the application’s static root, loaded plugins’ static roots, and finally Jifty’s static root. Returns undef if it can’t find the file in any path.

template_exists CW$path

An alias for file_path.

mime_type CW$path

Returns the mime type of the file whose path on disk is $path. Tries to use MIME::Types to guess first. If that fails, it falls back to File::MMagic.

send_file CW$path CW$mimetype

Print $path to STDOUT (the client), identified with a mimetype of $mimetype.

    send_http_header [COMPRESSION, LENGTH, LAST_MODIFIED]

Sends appropriate cache control and expiration headers such that the client will cache the content. COMPRESSION is deprecated

    send_not_modified

Sends a 304 Not modified response to the browser, telling it to use a cached copy.
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 JIFTY::VIEW::STATIC::HANDLER (3) 2010-09-25

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.