else {
$self->write( $c, $body );
}
+
+ $self->_writer->close;
+
+ $self->_clear_env;
+
+ return;
}
=head2 $self->finalize_cookies($c)
my $rc = $self->read_chunk( $c, my $buffer, $readlen );
if ( defined $rc ) {
if (0 == $rc) { # Nothing more to read even though Content-Length
- # said there should be. FIXME - Warn in the log here?
+ # said there should be.
$self->finalize_read;
return;
}
=cut
-sub read_chunk { }
+sub read_chunk {
+ my ($self) = @_;
+ return $self->env->{'psgi.input'}->read(@_);
+}
=head2 $self->read_length