Amon2::Web::Response::Callback - [EXPERIMENTAL]callback style psgi response for Amon2
use Amon2::Lite; any '/cb' => sub { my $c = shift; Amon2::Web::Response::Callback->new( code => sub { my $respond = shift; $respond->([200, [], []]); } ); };
This module provides a response object for delayed response/streaming body.
You can embed the AE support, streaming support, etc on Amon2 with this module.
Tatsumaki
To install Amon2, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Amon2
CPAN shell
perl -MCPAN -e shell install Amon2
For more information on module installation, please visit the detailed CPAN module installation guide.