Skip to content

Instantly share code, notes, and snippets.

@fujiwara
Created May 18, 2010 07:17
Show Gist options
  • Save fujiwara/404726 to your computer and use it in GitHub Desktop.
Save fujiwara/404726 to your computer and use it in GitHub Desktop.
sub {
my $env = shift; # request
# ...
return [ # response
200, # status code
[ "Content-Type" => "text/plain" ], # headers
["Hello world"] # body
];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment