|
NAME"FCGI::Async::PSGI" - use "PSGI" applications with "FCGI::Async" SYNOPSIS use FCGI::Async::PSGI;
use IO::Async::Loop;
my $loop = IO::Async::Loop->new;
my $fcgi = FCGI::Async::PSGI->new(
port => 12345,
app => sub {
my $env = shift;
return [
200,
[ "Content-Type" => "text/plain" ],
[ "Hello, world!" ],
];
},
);
$loop->add( $fcgi );
$loop->loop_forever;
DESCRIPTIONThis subclass of FCGI::Async allows a FastCGI responder to use a PSGI application to respond to requests. It acts as a gateway between the FastCGI connection from the webserver, and the "PSGI" application. Aside from the use of "PSGI" instead of the "on_request" callback, this class behaves similarly to "FCGI::Async". PARAMETERSThe following named parameters may be passed to "new" or "configure":
PSGI ENVIRONMENTThe following extra keys are supplied to the environment of the "PSGI" app:
SEE ALSO
AUTHORPaul Evans <leonerd@leonerd.org.uk>
|