Net::Async::FastCGI::PSGI(3pm) | User Contributed Perl Documentation | Net::Async::FastCGI::PSGI(3pm) |
"Net::Async::FastCGI::PSGI" - use "PSGI" applications with "Net::Async::FastCGI"
use Net::Async::FastCGI::PSGI; use IO::Async::Loop; my $loop = IO::Async::Loop->new; my $fcgi = Net::Async::FastCGI::PSGI->new( port => 12345, app => sub { my $env = shift; return [ 200, [ "Content-Type" => "text/plain" ], [ "Hello, world!" ], ]; }, ); $loop->add( $fcgi ); $loop->run;
This subclass of Net::Async::FastCGI 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" event, this class behaves similarly to "Net::Async::FastCGI".
The following named parameters may be passed to "new" or "configure":
The following extra keys are supplied to the environment of the "PSGI" app:
Paul Evans <leonerd@leonerd.org.uk>
2018-03-31 | perl v5.26.1 |