Created
April 23, 2012 19:55
-
-
Save sycobuny/2473403 to your computer and use it in GitHub Desktop.
Example plack script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
my $app = sub { | |
my ($status) = 200; | |
my ($headers) = [ 'Content-type' => 'text/plain' ]; | |
my ($body) = [ "SUP YOU GUYS\n", "IT'S MEEEEEEE\n" ]; | |
return [$status, $headers, $body]; | |
}; | |
use Plack::Builder; | |
builder { $app } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment