Unix and Linux Discussions Tagged with apps |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
4 |
4,206 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
3,076 |
What is on Your Mind? |
|
|
|
0 |
1,784 |
Cartoons for Geeks |
|
|
|
0 |
2,810 |
UNIX and Linux RSS News |
|
|
|
0 |
3,295 |
Cartoons for Geeks |
|
|
|
0 |
1,994 |
Oracle Updates (RSS) |
|
|
|
0 |
1,567 |
Solaris BigAdmin RSS |
|
|
|
0 |
1,259 |
Software Releases - RSS News |
|
|
|
1 |
6,400 |
UNIX for Dummies Questions & Answers |
|
|
|
5 |
5,030 |
Shell Programming and Scripting |
|
|
|
0 |
1,596 |
UNIX and Linux RSS News |
|
|
|
0 |
744 |
Software Releases - RSS News |
|
|
|
0 |
954 |
Software Releases - RSS News |
|
|
|
0 |
986 |
UNIX and Linux RSS News |
|
|
|
0 |
1,448 |
UNIX and Linux RSS News |
|
|
|
0 |
1,834 |
Oracle Updates (RSS) |
|
|
|
3 |
1,910 |
Solaris |
|
|
|
0 |
1,328 |
UNIX and Linux RSS News |
|
|
|
0 |
3,613 |
UNIX and Linux RSS News |
|
|
|
0 |
2,536 |
UNIX and Linux RSS News |
|
|
|
3 |
3,039 |
UNIX for Dummies Questions & Answers |
|
|
|
0 |
4,242 |
Filesystems, Disks and Memory |
|
|
|
6 |
3,609 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
7,088 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
3,530 |
Programming |
|
|
|
1 |
3,452 |
Programming |
|
|
|
3 |
2,658 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
2,657 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
2,998 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
5,622 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
14,646 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
4,599 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
4,457 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
5,323 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
2,964 |
UNIX for Dummies Questions & Answers |
|
|
|
11 |
7,846 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
3,033 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
14,926 |
UNIX for Dummies Questions & Answers |
|
|
|
0 |
11,006 |
OS X (Apple) |
|
|
|
2 |
6,311 |
Programming |
Plack::App::Cascade(3pm) User Contributed Perl Documentation Plack::App::Cascade(3pm)
NAME
Plack::App::Cascade - Cascadable compound application
SYNOPSIS
use Plack::App::Cascade;
use Plack::App::URLMap;
use Plack::App::File;
# Serve static files from multiple search paths
my $cascade = Plack::App::Cascade->new;
$cascade->add( Plack::App::File->new(root => "/www/example.com/foo")->to_app );
$cascade->add( Plack::App::File->new(root => "/www/example.com/bar")->to_app );
my $app = Plack::App::URLMap->new;
$app->map("/static", $cascade);
$app->to_app;
DESCRIPTION
Plack::App::Cascade is a Plack middleware component that compounds several apps and tries them to return the first response that is not
404.
METHODS
new
$app = Plack::App::Cascade->new(apps => [ $app1, $app2 ]);
Creates a new Cascade application.
add
$app->add($app1);
$app->add($app2, $app3);
Appends a new application to the list of apps to try. You can pass the multiple apps to the one "add" call.
catch
$app->catch([ 403, 404 ]);
Sets which error codes to catch and process onwards. Defaults to 404.
AUTHOR
Tatsuhiko Miyagawa
SEE ALSO
Plack::App::URLMap Rack::Cascade
perl v5.14.2 2011-12-04 Plack::App::Cascade(3pm)