Unix and Linux Discussions Tagged with apps |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
4 |
4,232 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
3,102 |
What is on Your Mind? |
|
|
|
0 |
1,791 |
Cartoons for Geeks |
|
|
|
0 |
2,818 |
UNIX and Linux RSS News |
|
|
|
0 |
3,301 |
Cartoons for Geeks |
|
|
|
0 |
2,004 |
Oracle Updates (RSS) |
|
|
|
0 |
1,577 |
Solaris BigAdmin RSS |
|
|
|
0 |
1,266 |
Software Releases - RSS News |
|
|
|
1 |
6,414 |
UNIX for Dummies Questions & Answers |
|
|
|
5 |
5,034 |
Shell Programming and Scripting |
|
|
|
0 |
1,599 |
UNIX and Linux RSS News |
|
|
|
0 |
744 |
Software Releases - RSS News |
|
|
|
0 |
955 |
Software Releases - RSS News |
|
|
|
0 |
989 |
UNIX and Linux RSS News |
|
|
|
0 |
1,455 |
UNIX and Linux RSS News |
|
|
|
0 |
1,834 |
Oracle Updates (RSS) |
|
|
|
3 |
1,914 |
Solaris |
|
|
|
0 |
1,328 |
UNIX and Linux RSS News |
|
|
|
0 |
3,614 |
UNIX and Linux RSS News |
|
|
|
0 |
2,540 |
UNIX and Linux RSS News |
|
|
|
3 |
3,056 |
UNIX for Dummies Questions & Answers |
|
|
|
0 |
4,256 |
Filesystems, Disks and Memory |
|
|
|
6 |
3,650 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
7,120 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
3,546 |
Programming |
|
|
|
1 |
3,468 |
Programming |
|
|
|
3 |
2,682 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
2,673 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
3,016 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
5,650 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
14,687 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
4,626 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
4,491 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
5,359 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
3,001 |
UNIX for Dummies Questions & Answers |
|
|
|
11 |
7,908 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
3,059 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
14,962 |
UNIX for Dummies Questions & Answers |
|
|
|
0 |
11,018 |
OS X (Apple) |
|
|
|
2 |
6,344 |
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)