Unix and Linux Discussions Tagged with apps |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
4 |
4,237 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
3,104 |
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,006 |
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,058 |
UNIX for Dummies Questions & Answers |
|
|
|
0 |
4,262 |
Filesystems, Disks and Memory |
|
|
|
6 |
3,665 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
7,128 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
3,548 |
Programming |
|
|
|
1 |
3,470 |
Programming |
|
|
|
3 |
2,684 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
2,679 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
3,018 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
5,655 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
14,691 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
4,635 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
4,494 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
5,362 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
3,006 |
UNIX for Dummies Questions & Answers |
|
|
|
11 |
7,919 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
3,067 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
14,967 |
UNIX for Dummies Questions & Answers |
|
|
|
0 |
11,022 |
OS X (Apple) |
|
|
|
2 |
6,354 |
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)