PSA::Acceptor::Dummy - Acceptor for Debug and Interactive purposes
my $acceptor = PSA::Acceptor::Dummy->new(); while (my $request = $acceptor->get_request() ) { my $psa = PSA->new(request => $request, ...); }
PSA::Acceptor::Dummy is a PSA::Request object factory. On invocation, it prompts for enough information to construct a request object. This acceptor deals in HTTP request objects.
The environment is permitted to contain pre-loaded information, which is presented as the defaults. If the environment variable SUCK_DUMMY is set to a true value, then it is assumed that everything necessary has been loaded into the environment.
Returns a new acceptor object.
Returns a new acceptor object. Prompts the user to enter the values if run from a terminal.
Returns a PSA::Request derived object, or undef if there are none available.
undef
This function will probably block.
Returns the filehandle (either an IO::Handle or a ref GLOB) to write to to respond to this request
Returns true if this acceptor has accepted more than its fair share of hits, or $0 or any include files have changed
PSA, PSA::Acceptor::AutoCGI, PSA::Request
To install PSA, copy and paste the appropriate command in to your terminal.
cpanm
cpanm PSA
CPAN shell
perl -MCPAN -e shell install PSA
For more information on module installation, please visit the detailed CPAN module installation guide.