Implement strict constructors, which will warn unkown constructor arguments
[gitmo/Mouse.git] / author / use-he.pl
CommitLineData
e3575663 1#!perl -w
2
3use strict;
30518636 4require UNIVERSAL; # for profiling
5require HTTP::Engine;
e3575663 6
7my $engine = HTTP::Engine->new(
8 interface => {
9 module => 'CGI',
10 request_handler => \&handle_request,
11 },
12);
13
14$engine->run();
15
16sub handle_request{
17 my($request) = @_;
18
19 return HTTP::Engine::Response->new(body => "Hello, world!\n");
20}