AC-MrGamoo
view release on metacpan or search on metacpan
lib/AC/MrGamoo/Server.pm view on Meta::CPAN
}
}
sub http {
my $me = shift;
my $proto = shift;
my $url = shift;
$url =~ s|^/||;
$url =~ s/%(..)/chr(hex($1))/eg;
my($base) = split m|/|, $url;
debug("http get $base");
my $f = $HTTP{$base};
$f ||= \&http_notfound;
my( $content, $code, $text ) = $f->($url);
$code ||= 200;
$text ||= 'OK';
my $res = "HTTP/1.0 $code $text\r\n"
. "Server: AC/MrGamoo\r\n"
( run in 0.802 second using v1.01-cache-2.11-cpan-39bf76dae61 )