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
Catalyst::Plugin::Static(3) User Contributed Perl Documentation Catalyst::Plugin::Static(3)

Catalyst::Plugin::Static - DEPRECATED - Serve static files with Catalyst

    use Catalyst 'Static';

    # let File::MMagic determine the content type
    $c->serve_static;

    # or specify explicitly if you know better
    $c->serve_static('text/css');

Serve static files from config->{root}. You probably want to use use Catalyst::Plugin::Static::Simple rather than this module.

finalize
This plugin overrides finalize to make sure content is removed on redirect.
serve_static
Call this method from your action to serve requested path as a static file from your root. takes an optional content_type parameter
serve_static_file <file>
Serve a specified static file.

Catalyst.

This module is not as optimized for static files as a normal web server, and is most useful for stand alone operation and development.

Sebastian Riedel, "sri@cpan.org" Christian Hansen <ch@ngmedia.com> Marcus Ramberg <mramberg@cpan.org>

Torsten Seemann and all the others who've helped.

This program is free software, you can redistribute it and/or modify it under the same terms as Perl itself.
2009-10-18 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

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