1Plack::Loader(3)      User Contributed Perl Documentation     Plack::Loader(3)
2
3
4

NAME

6       Plack::Loader - (auto)load Plack Servers
7

SYNOPSIS

9         # auto-select server backends based on env vars
10         use Plack::Loader;
11         Plack::Loader->auto(%args)->run($app);
12
13         # specify the implementation with a name
14         Plack::Loader->load('FCGI', %args)->run($app);
15

DESCRIPTION

17       Plack::Loader is a factory class to load one of Plack::Handler
18       subclasses based on the environment.
19

AUTOLOADING

21       "Plack::Loader->auto(%args)" will autoload the most correct server
22       implementation by guessing from environment variables and Perl INC
23       hashes.
24
25       PLACK_SERVER
26             env PLACK_SERVER=AnyEvent ...
27
28           Plack users can specify the specific implementation they want to
29           load using the "PLACK_SERVER" environment variable.
30
31       PHP_FCGI_CHILDREN, GATEWAY_INTERFACE
32           If there's one of FastCGI or CGI specific environment variables
33           set, use the corresponding server implementation.
34
35       %INC
36           If one of AnyEvent, Coro or POE is loaded, the relevant server
37           implementation such as Twiggy, Corona or
38           POE::Component::Server::PSGI will be loaded, if they're available.
39
40
41
42perl v5.30.0                      2019-07-26                  Plack::Loader(3)
Impressum