HTTP-Daemon
view release on metacpan or search on metacpan
lib/HTTP/Daemon.pm view on Meta::CPAN
}
$r->push_header($key, $val) if $key;
}
my $conn = $r->header('Connection');
if ($proto >= $HTTP_1_1) {
${*$self}{'httpd_nomore'}++ if $conn && lc($conn) =~ /\bclose\b/;
}
else {
${*$self}{'httpd_nomore'}++
unless $conn && lc($conn) =~ /\bkeep-alive\b/;
}
if ($only_headers) {
${*$self}{'httpd_rbuf'} = $buf;
return $r;
}
# Find out how much content to read
my $tr_enc = $r->header('Transfer-Encoding');
my $ct_type = $r->header('Content-Type');
( run in 0.638 second using v1.01-cache-2.11-cpan-71847e10f99 )