Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
AnyEvent based non-blocking PSGI web server (like Thin)
JavaScript Perl CSS

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
bin
eg/chat-websocket
lib
t
xt
.gitignore
.shipit
Changes
MANIFEST
MANIFEST.SKIP
Makefile.PL
README

README

NAME
    Twiggy - AnyEvent HTTP server for PSGI (like Thin)

SYNOPSIS
      use Twiggy;

      my $server = Twiggy->new(
          host => $host,
          port => $port,
      );
      $server->register_service($app);

      AE::cv->recv;

DESCRIPTION
    Twiggy is a lightweight and fast HTTP server with unique features such
    as:

    PSGI
        Can run any PSGI applications. Fully supports *psgi.nonblocking* and
        *psgi.streaming* interfaces.

    AnyEvent
        This server uses AnyEvent and runs in a non-blocking event loop, so
        it's best to run event-driven web applications that runs I/O bound
        jobs or delayed responses such as long-poll, WebSocket or streaming
        content (server push).

    Fast header parser
        Uses XS/C based HTTP header parser for the best performance.

    Lightweight and Fast
        The memory required to run twiggy is 6MB and it can serve more than
        4000 req/s with a single process on Perl 5.10 with MacBook Pro 13"
        late 2009.

NAMING
  Twiggy?
    Because it is like <Thin>, Ruby's Rack web server using EventMachine.
    You know, Twiggy is thin :)

  Why the cute name instead of more descriptive namespace? Are you on drugs?
    Maybe I am on drugs with all those Ruby cute names but I'm sick of
    naming software like
    HTTP::Server::PSGI::How::Its::Written::With::What::Module and people
    call it HSSPHIWWWM on IRC, and newbies would ask questions what they
    stand for every day. That's crazy.

    This module actually includes the longer alias 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.

LICENSE
    This module is licensed under the same terms as Perl itself.

AUTHOR
    Tatsuhiko Miyagawa

    Tokuhiro Matsuno

    Yuval Kogman

    Hideki Yamamura

SEE ALSO
    Plack AnyEvent Tatsumaki

Something went wrong with that request. Please try again.