Twiggy(3pm) | User Contributed Perl Documentation | Twiggy(3pm) |
Twiggy - AnyEvent HTTP server for PSGI (like Thin)
twiggy --listen :8080
See "twiggy -h" for more details.
use Twiggy::Server; my $server = Twiggy::Server->new( host => $host, port => $port, ); $server->register_service($app); AE::cv->recv;
Twiggy is a lightweight and fast HTTP server with unique features such as:
This software used to be called Plack::Server::AnyEvent but was renamed to Twiggy. See "NAMING" for details.
To use it, instead of the usual:
plackup --server Twiggy --port 8111 app.psgi
install Server::Starter and use:
start_server --port 8111 plackup --server Twiggy app.psgi
The following environment variables are supported.
Because it is like Thin <http://code.macournoyer.com/thin/>, Ruby's Rack web server using EventMachine. You know, Twiggy is thin :)
I'm sick of naming Perl software like HTTP::Server::PSGI::How::Its::Written::With::What::Module and people call it HSPHIWWWM on IRC. It's hard to say on speeches and newbies would ask questions what they stand for every day. That's crazy.
This module actually includes the longer alias and an empty subclass AnyEvent::Server::PSGI for those who like to type more ::'s. It would actually help you find this software by searching for PSGI Server AnyEvent on CPAN, which i believe is a good thing.
Yes, maybe I'm on drugs. We'll see.
This module is licensed under the same terms as Perl itself.
Tatsuhiko Miyagawa
Tokuhiro Matsuno
Yuval Kogman
Hideki Yamamura
Daisuke Maki
Plack AnyEvent Tatsumaki
2015-01-03 | perl v5.20.2 |