This commit is contained in:
2026-08-11 23:10:22 -06:00
commit 6fec70c7c8
13 changed files with 334 additions and 0 deletions

22
lib/CW/Plack/Request.pm Normal file
View File

@@ -0,0 +1,22 @@
package CW::Plack::Request;
use Moo;
has h => (
is => 'ro',
required => 1
);
has _request => (
is => 'ro',
init_arg => 'request',
required => 1
);
sub new_response {
my ( $self, @args ) = @_;
my $response = $self->_request->new_response(@args);
return CW::Plack::Response->new( response => $response, h => $self->h );
}
1;