Unix and Linux Discussions Tagged with apps |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
4 |
4,218 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
3,084 |
What is on Your Mind? |
|
|
|
0 |
1,784 |
Cartoons for Geeks |
|
|
|
0 |
2,812 |
UNIX and Linux RSS News |
|
|
|
0 |
3,295 |
Cartoons for Geeks |
|
|
|
0 |
1,995 |
Oracle Updates (RSS) |
|
|
|
0 |
1,569 |
Solaris BigAdmin RSS |
|
|
|
0 |
1,261 |
Software Releases - RSS News |
|
|
|
1 |
6,406 |
UNIX for Dummies Questions & Answers |
|
|
|
5 |
5,031 |
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,451 |
UNIX and Linux RSS News |
|
|
|
0 |
1,834 |
Oracle Updates (RSS) |
|
|
|
3 |
1,911 |
Solaris |
|
|
|
0 |
1,328 |
UNIX and Linux RSS News |
|
|
|
0 |
3,613 |
UNIX and Linux RSS News |
|
|
|
0 |
2,539 |
UNIX and Linux RSS News |
|
|
|
3 |
3,044 |
UNIX for Dummies Questions & Answers |
|
|
|
0 |
4,244 |
Filesystems, Disks and Memory |
|
|
|
6 |
3,620 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
7,096 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
3,534 |
Programming |
|
|
|
1 |
3,456 |
Programming |
|
|
|
3 |
2,663 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
2,662 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
3,003 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
5,627 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
14,661 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
4,611 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
4,464 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
5,332 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
2,978 |
UNIX for Dummies Questions & Answers |
|
|
|
11 |
7,861 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
3,037 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
14,933 |
UNIX for Dummies Questions & Answers |
|
|
|
0 |
11,007 |
OS X (Apple) |
|
|
|
2 |
6,320 |
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)