ASP4
view release on metacpan or search on metacpan
lib/ASP4/Mock/RequestRec.pm view on Meta::CPAN
package ASP4::Mock::RequestRec;
use strict;
use warnings 'all';
use ASP4::Mock::Pool;
use ASP4::Mock::Connection;
use ASP4::ConfigLoader;
use Scalar::Util 'weaken';
sub new
{
my ($class, %args) = @_;
my $s = bless {
status => 200,
content_type => 'text/plain',
buffer => '',
lib/ASP4/Mock/RequestRec.pm view on Meta::CPAN
headers_in => { },
headers_out => { },
uri => $args{uri} || $ENV{REQUEST_URI},
args => $args{args} || $ENV{QUERY_STRING},
pnotes => { },
method => $args{method},
pool => ASP4::Mock::Pool->new(),
connection => ASP4::Mock::Connection->new(),
}, $class;
weaken($s->{connection});
$s->{err_headers_out} = $s->{headers_out};
$s->{filename} = $s->document_root . $s->uri;
return $s;
}# end new()
# Public read-write properties:
sub pnotes
{
lib/ASP4/SessionStateManager.pm view on Meta::CPAN
package ASP4::SessionStateManager;
use strict;
use warnings 'all';
use base 'Ima::DBI::Contextual';
use HTTP::Date qw( time2iso time2str str2time );
use Time::HiRes 'gettimeofday';
use Digest::MD5 'md5_hex';
use Storable qw( freeze thaw );
use Scalar::Util 'weaken';
use ASP4::ConfigLoader;
sub new
{
my ($class, $r) = @_;
my $s = bless { }, $class;
my $conn = context()->config->data_connections->session;
local $^W = 0;
( run in 0.637 second using v1.01-cache-2.11-cpan-3b35f9de6a3 )