1Plack::Loader(3) User Contributed Perl Documentation Plack::Loader(3)
2
3
4
6 Plack::Loader - (auto)load Plack Servers
7
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
17 Plack::Loader is a factory class to load one of Plack::Handler
18 subclasses based on the environment.
19
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.32.0 2020-12-02 Plack::Loader(3)