Skip to content

Instantly share code, notes, and snippets.

View sharifulin's full-sized avatar

Anatoly Sharifulin sharifulin

View GitHub Profile
@sugar84
sugar84 / gist:952361
Created May 2, 2011 21:03
twiggy vs node.js vs HTTP::Server::Simple::PSGI
----------------------------------------------------------
== Twiggy ==
app.psgi:
my $app = sub {
return [ 200, ['Content-Type' => 'text/plain'], [ "Hello world\n"] ];
};
[sugar@host dir]$ twiggy --listen 127.0.0.1:8080 app.psgi
#!/usr/bin/env starman
use strict;
use warnings;
use v5.10;
use AnyEvent;
use AnyEvent::Redis;
use JSON::XS;
use Plack::Request;