Skip to content

Instantly share code, notes, and snippets.

@yappo
Created September 8, 2009 04:10
Show Gist options
  • Select an option

  • Save yappo/182706 to your computer and use it in GitHub Desktop.

Select an option

Save yappo/182706 to your computer and use it in GitHub Desktop.
# PlackupTest.pm
package PlackupTest;
use strict;
use warnings;
use Plack::Response;
sub hanlder {
my $req = shift;
my $body = qq{
<h1>Welcome To Ksk World.</h1>
you request uri is @{ [ $req->uri ] }.<br />
};
my $res = Plack::Response->new({ status => 200, body => $body });
$res->header( 'content-type' => 'text/html' );
$res;
}
1;
# plackuptest.pu
use PlackupTest;
run PlackupTest->new;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment