HTTP::Engine::Interface::FCGI - FastCGI interface for HTTP::Engine
#!/usr/bin/perl
use HTTP::Engine;
HTTP::Engine->new(
interface => {
module => 'FCGI',
args => {
},
request_handler => 'main::handle_request',# or CODE ref
},
)->run();
sub handle_request {
HTTP::Engine::Response->new( body => 'hello, world!' );
}
- leave_umask
- keep_stderr
- send STDERR to stdout (a logfile)
- nointr
- detach
- manager
- nproc
- pidfile
- listen
- Pathname of socket or colon followed by local tcp port.
many codes copied from Catalyst::Engine::FastCGI. thanks authors of
C::E::FastCGI!