The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

PSA::Acceptor::Dummy - Acceptor for Debug and Interactive purposes

SYNOPSIS

 my $acceptor = PSA::Acceptor::Dummy->new();

 while (my $request = $acceptor->get_request() ) {

     my $psa = PSA->new(request => $request, ...);

 }

DESCRIPTION

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.

METHODS

PSA::Acceptor::Dummy->new()

Returns a new acceptor object.

PSA::Acceptor::Dummy->new()

Returns a new acceptor object. Prompts the user to enter the values if run from a terminal.

$acceptor->get_request

Returns a PSA::Request derived object, or undef if there are none available.

This function will probably block.

$acceptor->output_fd

Returns the filehandle (either an IO::Handle or a ref GLOB) to write to to respond to this request

$acceptor->stale

Returns true if this acceptor has accepted more than its fair share of hits, or $0 or any include files have changed

SEE ALSO

PSA, PSA::Acceptor::AutoCGI, PSA::Request