Unix and Linux Discussions Tagged with apps |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
4 |
4,223 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
3,094 |
What is on Your Mind? |
|
|
|
0 |
1,789 |
Cartoons for Geeks |
|
|
|
0 |
2,814 |
UNIX and Linux RSS News |
|
|
|
0 |
3,298 |
Cartoons for Geeks |
|
|
|
0 |
1,999 |
Oracle Updates (RSS) |
|
|
|
0 |
1,575 |
Solaris BigAdmin RSS |
|
|
|
0 |
1,265 |
Software Releases - RSS News |
|
|
|
1 |
6,409 |
UNIX for Dummies Questions & Answers |
|
|
|
5 |
5,032 |
Shell Programming and Scripting |
|
|
|
0 |
1,597 |
UNIX and Linux RSS News |
|
|
|
0 |
744 |
Software Releases - RSS News |
|
|
|
0 |
954 |
Software Releases - RSS News |
|
|
|
0 |
987 |
UNIX and Linux RSS News |
|
|
|
0 |
1,453 |
UNIX and Linux RSS News |
|
|
|
0 |
1,834 |
Oracle Updates (RSS) |
|
|
|
3 |
1,912 |
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,050 |
UNIX for Dummies Questions & Answers |
|
|
|
0 |
4,250 |
Filesystems, Disks and Memory |
|
|
|
6 |
3,636 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
7,111 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
3,542 |
Programming |
|
|
|
1 |
3,462 |
Programming |
|
|
|
3 |
2,677 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
2,670 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
3,004 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
5,636 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
14,679 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
4,615 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
4,482 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
5,341 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
2,992 |
UNIX for Dummies Questions & Answers |
|
|
|
11 |
7,881 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
3,050 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
14,945 |
UNIX for Dummies Questions & Answers |
|
|
|
0 |
11,010 |
OS X (Apple) |
|
|
|
2 |
6,329 |
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)