NAME
PSA::Acceptor::AutoCGI - Detect CGI method and return requests
SYNOPSIS
my $acceptor = PSA::Acceptor::AutoCGI->new();
while (my $request = $acceptor->get_request() ) {
my $psa = PSA->new(request => $request, ...);
}
DESCRIPTION
PSA::Acceptor::AutoCGI is a PSA::Request object factory. On invocation, it determines whether FastCGI, mod_perl or standard CGI invocation is being used.
METHODS
- PSA::Acceptor::AutoCGI->new(socket => [ 'pathname' ])
-
Returns a new acceptor object. If 'sitename' is given, then the program is considered to be an external FastCGI daemon.
- $acceptor->get_request
-
Returns a PSA::Request object, or undef if there are none.
- $acceptor->output_fd
-
Returns the filehandle (either an IO::Handle or a ref GLOB) to write to to respond to this request