App-Alice
view release on metacpan or search on metacpan
lib/App/Alice/HTTPD.pm view on Meta::CPAN
$self->app->tab_order([grep {defined $_} $req->parameters->get_all('tabs')]);
my $res = $req->new_response(200);
$res->content_type('text/plain');
$res->content_length(2);
$res->body('ok');
return $res->finalize;
}
sub not_found {
my ($self, $req) = @_;
$self->app->log(debug => "sending 404 " . $req->path_info);
my $res = $req->new_response(404);
return $res->finalize;
}
__PACKAGE__->meta->make_immutable;
1;
( run in 1.394 second using v1.01-cache-2.11-cpan-39bf76dae61 )