++ed by:
TOKUHIROM NOZZZZZ MARKSTOS LIMITUSUS HIDEAKIO

11 PAUSE users
8 non-PAUSE users.

MATSUNO★…Tokuhiro
and 32 contributors

NAME

Amon2::Web::Response::Callback - [EXPERIMENTAL]callback style psgi response for Amon2

SYNOPSIS

    use Amon2::Lite;

    any '/cb' => sub {
        my $c = shift;
        Amon2::Web::Response::Callback->new(
            code => sub {
                my $respond = shift;
                $respond->([200, [], []]);
            }
        );
    };

DESCRIPTION

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.

SEE ALSO

Tatsumaki